forked from pypi/warehouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
104 lines (94 loc) · 3.97 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
language: python
python: 3.5.2
env:
global:
- TRAVIS_NODE_VERSION=5.5.0
- LIVESERVER_HOST=warehouse.local
- CXX=g++-4.8
- secure: "fj97g3yXU6cJPFGpK2Vrd0f9Vms7zCO2oiyT1SUCs5NQMq1WXZfFuYYMSZ3luwzAcRZ/LZtuuoW+CL+5VyCz/qSTv4YOm5Ao2DscEXcemeJPt98abtKcCIRtFVgJ7N7SnO9d4ndmRk6G18CmbcsLINLXe0N27ocwR7bY0m31Wes="
- secure: "e5568YThsje9x+aFqcCJ8Wt/uMGDM8gY4FHiHPNcyB2Doa63nyVeTIWvOqmuh67PoqGQPMKIof5gt4FXDiMu10fvkZ6R/NhGEOWd4bbzednHny4H3ey3tsVKvfURfGju2PpkopK4IMFWHKRo4h4RoheY01gdNBSkBtllWPfEXF4="
- secure: "IMdeE5r/XktX8cp18D4lS+0zPFrvM15R4kEVAPeuM+ef2EQ7vywf9sT0gL8WxPE6cfxBQ7oS7NpUaNTcKushKmI5gtAyjCczmzbXcPlHA71ho4ssqxoX+g61v34EUYiNPiKrEy/Wk0UX943ZpcWcahxpLJfKmcW3ZKUFHUQ6qcU="
- secure: "S9p1nPqBRJ8M/pOzQ/y8m8ye+QDoQas32B2MN+8rOKM9lBb7TpmPnYyAeLrZtstSOQ/dJRUmRrSMeEa2pB8I8s8LUJrNOEyKX2G3QC7MMVzpMtfyJYr9TL3KtcppKE54vZovr6xCtciOlY8EJM2IxZZ25e9YZIt+JTxll0QggIo="
matrix:
- SUITE=Tests SELENIUM_BROWSER=phantomjs LIVESERVER_HOST=127.0.0.1
# We don't exhaustively test every combination of Browser/Version/OS since
# that would be a massive number of test cases. Instead we test our
# supported browsers on one operating system. To choose which operating
# system we test it on we look at which OS has the largest share of users
# for that browser and use that while also trying to divide our tests out
# amongst different OSs.
# - SUITE=Tests SELENIUM_BROWSER=chrome SELENIUM_VERSION=latest SELENIUM_PLATFORM="Windows 10"
# - SUITE=Tests SELENIUM_BROWSER=chrome SELENIUM_VERSION=latest-1 SELENIUM_PLATFORM="Windows 10"
# - SUITE=Tests SELENIUM_BROWSER=firefox SELENIUM_VERSION=latest SELENIUM_PLATFORM="Linux"
# - SUITE=Tests SELENIUM_BROWSER=firefox SELENIUM_VERSION=latest-1 SELENIUM_PLATFORM="Linux"
# - SUITE=Tests SELENIUM_BROWSER=MicrosoftEdge SELENIUM_VERSION=latest SELENIUM_PLATFORM="Windows 10"
# - SUITE=Tests SELENIUM_BROWSER=MicrosoftEdge SELENIUM_VERSION=latest-1 SELENIUM_PLATFORM="Windows 10"
# - SUITE=Tests SELENIUM_BROWSER=opera SELENIUM_VERSION=latest SELENIUM_PLATFORM="Windows 7"
# - SUITE=Tests SELENIUM_BROWSER=opera SELENIUM_VERSION=latest-1 SELENIUM_PLATFORM="Windows 7"
# - SUITE=Tests SELENIUM_BROWSER=safari SELENIUM_VERSION=9.0 SELENIUM_PLATFORM="OS X 10.11"
# - SUITE=Tests SELENIUM_BROWSER="internet explorer" SELENIUM_VERSION="11.0" SELENIUM_PLATFORM="Windows 7"
dist: trusty
sudo: false
addons:
hosts:
- warehouse.local
postgresql: "9.4"
# sauce_connect: true
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
services:
- postgresql
cache:
directories:
- ~/.cache/pip
- node_modules/
install:
- 'rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION'
- pip install -U pip setuptools wheel codecov
- pip install -r requirements/main.txt
- pip install -r requirements/docs.txt -r requirements/lint.txt -r requirements/tests.txt
- npm install
script:
- node -v
- npm -v
- gulp dist
- bin/tests --dbfixtures-config tests/dbfixtures.travis.conf --liveserver-host $LIVESERVER_HOST
matrix:
include:
- script: make lint BINDIR="$(dirname $(which python))"
env:
- SUITE=Lint
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- script: make docs BINDIR="$(dirname $(which python))"
env:
- SUITE=Documentation
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- script: make travis-deps BINDIR="$(dirname $(which python))"
env:
- SUITE=Dependencies
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
after_success: codecov
notifications:
irc:
channels:
- "irc.freenode.org#pypa-dev"
use_notice: true
skip_join: true