-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
329 lines (290 loc) · 8.41 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
# https://travis-ci.com/burgerbecky/pyburger
# Docs for Travis https://docs.travis-ci.com/
# Python testing
language: python
# Cache the python pip and environment folders
cache:
directories:
- "$HOME/.cache/pip"
- "$HOME/.pyenv"
# Only track the master branch, don't process pull requests
branches:
only:
- master
# Allow apt-update
addons:
apt:
update: true
# Test on Linux and MacOS versions of Python
# Windows is tested at Olde Skuul
matrix:
include:
# Windows builds
- name: "Python2.7.18 on Windows"
os: windows
language: sh
python: "2.7"
env: TOXENV=py27
before_install:
- choco install python2 --version=2.7.18
- export PATH="/c/Python27:/c/Python27/Scripts:$PATH"
# Added pip install pip==19.1.1 to fix NameError: name 'platform_system' is not defined error
# Note: pip 19.1.1 is the last version that supports Python 3.4
- name: "Python3.4.4 on Windows"
os: windows
language: sh
python: "3.4"
env: TOXENV=py34
before_install:
- choco install python3 --version=3.4.4
- export PATH="/c/Python34:/c/Python34/Scripts:$PATH"
- python -m pip install pip==19.1.1
- name: "Python3.5.4 on Windows"
os: windows
language: sh
python: "3.5"
env: TOXENV=py35
before_install:
- choco install python3 --version=3.5.4
- export PATH="/c/Python35:/c/Python35/Scripts:$PATH"
- name: "Python3.6.8 on Windows"
os: windows
language: sh
python: "3.6"
env: TOXENV=py36
before_install:
- choco install python3 --version=3.6.8
- export PATH="/c/Python36:/c/Python36/Scripts:$PATH"
- name: "Python3.7.9 on Windows"
os: windows
language: sh
python: "3.7"
env: TOXENV=py37
before_install:
- choco install python3 --version=3.7.9
- export PATH="/c/Python37:/c/Python37/Scripts:$PATH"
- name: "Python3.8.6 on Windows"
os: windows
language: sh
python: "3.8"
env: TOXENV=py38
before_install:
- choco install python3 --version=3.8.6
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
- name: "Python3.9.0 on Windows"
os: windows
language: sh
python: "3.9"
env: TOXENV=py39
before_install:
- choco install python3 --version=3.9.0
- export PATH="/c/Python39:/c/Python39/Scripts:$PATH"
# Linux builds
# precise = 12.04
# trusty = 14.04
# xenial = 16.04
# bionic = 18.04
# focal = 20.04
- name: "pypy on Ubuntu 14.04"
os: linux
dist: trusty
python: "pypy"
env: TOXENV=pypy
- name: "pypy3 on Ubuntu 14.04"
os: linux
dist: trusty
python: "pypy3"
env: TOXENV=pypy3
- name: "pypy3.5 on Ubuntu 14.04"
os: linux
dist: trusty
python: "pypy3.5"
env: TOXENV=pypy
- name: "Python2.7 on Ubuntu 14.04"
os: linux
dist: trusty
python: "2.7"
env: TOXENV=py27
- name: "Python2.7 on Ubuntu 16.04"
os: linux
dist: xenial
python: "2.7"
env: TOXENV=py27
- name: "Python3.4 on Ubuntu 14.04"
os: linux
dist: trusty
python: "3.4"
env: TOXENV=py34
- name: "Python3.4 on Ubuntu 16.04"
os: linux
dist: xenial
python: "3.4"
env: TOXENV=py34
- name: "Python3.5 on Ubuntu 16.04"
os: linux
dist: xenial
python: "3.5"
env: TOXENV=py35
- name: "Python3.6 on Ubuntu 16.04"
os: linux
dist: xenial
python: "3.6"
env: TOXENV=py36
- name: "Python3.7 on Ubuntu 16.04"
os: linux
dist: bionic
python: "3.7"
env: TOXENV=py37
- name: "Python3.8 on Ubuntu 20.04"
os: linux
dist: focal
python: "3.8"
env: TOXENV=py38
- name: "Python3.9 on AMD64 Ubuntu 20.04"
os: linux
dist: focal
arch: amd64
python: 3.9
env: TOXENV=py39
- name: "Python3.9 on PowerPC Ubuntu 20.04"
os: linux
dist: focal
arch: ppc64le
python: 3.9
env: TOXENV=py39
- name: "Python3.9 on S390X Ubuntu 20.04"
os: linux
dist: focal
arch: s390x
python: 3.9
env: TOXENV=py39
- name: "Python3.9 on ARM64 Ubuntu 20.04"
os: linux
dist: focal
arch: arm64
python: 3.9
env: TOXENV=py39
# macOS builds
# on macOS, the python version must be specific since pyenv
# requires it for installing the python version
- name: "Python2.7.17 on macOS"
os: osx
language: generic
env:
- TOXENV=py27
- PYENV_VERSION=2.7.17
before_install:
- pyenv versions
- pyenv install --list
- eval "$(pyenv init -)"
- pyenv install -s $PYENV_VERSION
- name: "Python3.5.8 on macOS"
os: osx
language: generic
env:
- TOXENV=py35
- PYENV_VERSION=3.5.8
before_install:
- pyenv versions
- pyenv install --list
- eval "$(pyenv init -)"
- pyenv install -s $PYENV_VERSION
- name: "Python3.6.9 on macOS"
os: osx
language: generic
env:
- TOXENV=py36
- PYENV_VERSION=3.6.9
before_install:
- pyenv versions
- pyenv install --list
- eval "$(pyenv init -)"
- pyenv install -s $PYENV_VERSION
- name: "Python3.7.5 on macOS"
os: osx
language: generic
env:
- TOXENV=py37
- PYENV_VERSION=3.7.5
before_install:
- pyenv versions
- pyenv install --list
- eval "$(pyenv init -)"
- pyenv install -s $PYENV_VERSION
- name: "Python3.8.0 on macOS"
os: osx
language: generic
env:
- TOXENV=py38
- PYENV_VERSION=3.8.0
before_install:
- pyenv versions
- pyenv install --list
- eval "$(pyenv init -)"
- pyenv install -s $PYENV_VERSION
- name: "Python3.9-dev on macOS"
os: osx
language: generic
env:
- TOXENV=py39
- PYENV_VERSION=3.9-dev
before_install:
- brew uninstall pyenv
- brew install --build-from-source --ignore-dependencies pyenv
- pyenv versions
- pyenv install --list
- eval "$(pyenv init -)"
- pyenv install -s $PYENV_VERSION
# pyenv in Travis is outdated for pypy2, upgrade it
- name: "pypy2.7-7.2.0 on macOS"
os: osx
language: generic
env:
- TOXENV=pypy
- PYENV_VERSION=pypy2.7-7.2.0
before_install:
- brew uninstall pyenv
- brew install --build-from-source --ignore-dependencies pyenv
- pyenv versions
- pyenv install --list
- eval "$(pyenv init -)"
- pyenv install -s $PYENV_VERSION
# pyenv in Travis is outdated for pypy3, upgrade it
- name: "pypy3.6-7.2.0 on macOS"
os: osx
language: generic
env:
- TOXENV=pypy3
- PYENV_VERSION=pypy3.6-7.2.0
before_install:
- brew uninstall pyenv
- brew install --build-from-source --ignore-dependencies pyenv
- pyenv versions
- pyenv install --list
- eval "$(pyenv init -)"
- pyenv install -s $PYENV_VERSION
# Install python packages needed for this test and get versions for log
install:
- pip install .
- pip install tox-travis wheel codecov coverage pathlib2
- virtualenv --version
- easy_install --version
- pip --version
- tox --version
# Tox does all the work
script:
- tox
# Output the errors, if any
after_failure:
- more temp/tox/log/* | cat
- more temp/tox/*/log/* | cat
# Send a pass/fail to us
notifications:
slack:
rooms:
secure: T4nFowKbMzdZikD9D0kKg3CYV/NVtypUrfj5NruaZgsArw3Fo0RZj1/CQacXVR8qWBGjpqxwhDDkBEKFjq5e/++GsrUxoLL+Rgz8hn8VVUgV4q8+I7W4WDPybc1pEervJNqqwCq7oCiNen4ZrKzojVuNhO9HVAEDXRNfHzM9k/GvIOOpQzK6QB8tgfXTjoT8MZL5MjBvzFje755XgytELXlgCmcd+2wDXAUBwlgfxMtGC7UZhng5fS/6JmYYoBLATebpKMLUPcLbfHRZ3vb8x2fKnEDXF1YSAjry+Ade8bj/CdoM2SBZjjhsh7L+EoveWY0SXXFdtqjFMZu6zLUTRhACpmID/ANYjZYCUyeNIOzjNml1WhxnD11LGYhmB3V7164FEYdxtq5Z1QSwsH1cmA5u8loitM9nkl1wgc+IBtlrNTpDj7S75iRFxa4mr5hZfBADJy9Tpm5GzX+i/14zYFcE+0f6CnWebGfcTd9Js+vKIKoa4ttoXNhGERBsLy5S2QcBRS5yqSh8/dgi0GsnRBYYEfpOdV9H5mgq4WNVJnsntANwYk/Q9FvTmrrbnteb1oY8Tvf4GvaHioKNLbqbTXNSTdFozbrYLPrNoFGDGQBl767JBtQChcnfsHv78c3BluaLlCU8ikwYzJsrx9KqpXWuc06c+JGVC1qVLR9kZcA=
on_success: always
on_failure: always
email:
on_success: change
on_failure: always