forked from sympy/sympy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
348 lines (332 loc) · 8.42 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
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
language: python
sudo: false
env:
matrix:
- TEST_DOCTESTS="true" FASTCACHE="false" TEST_SETUP="true"
- SPLIT="1/4" TEST_SYMPY="true"
- SPLIT="2/4" TEST_SYMPY="true"
- SPLIT="3/4" TEST_SYMPY="true"
- SPLIT="4/4" TEST_SYMPY="true"
global:
- secure: "YIEZal9EBTL+fg2YmoZoS8Bvt3eAVUOZjb38CtqpzR2CCSXWoUk35KG23m2NknlY1iKfYJyt7XWBszT/VKOQEbWQq7PIakV4vIByrWacgBxy1x3WC+rZoW7TX+JJiL+y942qIYbMoNMMB8xFpE5RDLSjSecMpFhJJXoafVTvju8="
python:
- 2.7
- 3.3
- 3.4
- 3.5
matrix:
include:
- python: 2.7
env:
- TEST_GMPY="true"
- TEST_MATPLOTLIB="true"
- TEST_THEANO="true"
- TEST_ASCII="true"
addons:
apt:
packages:
# for gmpy
- libgmp-dev
# for theano
- libatlas-dev
- libatlas-base-dev
- liblapack-dev
- gfortran
- python: 3.5
env:
- TEST_GMPY="true"
- TEST_MATPLOTLIB="true"
- TEST_THEANO="true"
- TEST_ASCII="true"
addons:
apt:
packages:
# for gmpy
- libgmp-dev
# for theano
- libatlas-dev
- libatlas-base-dev
- liblapack-dev
- gfortran
- python-scipy
- python: 3.5
env:
- TEST_SPHINX="true"
- FASTCACHE="false"
addons:
apt:
packages:
- graphviz
- inkscape
- texlive
- texlive-xetex
- texlive-fonts-recommended
- texlive-latex-extra
- lmodern
- librsvg2-bin
- imagemagick
- docbook2x
- python: 2.7
env:
- TEST_SLOW="true"
- SPLIT="1/3"
- python: 2.7
env:
- TEST_SLOW="true"
- SPLIT="2/3"
- python: 2.7
env:
- TEST_SLOW="true"
- SPLIT="3/3"
- python: 3.5
env:
- TEST_SLOW="true"
- SPLIT="1/3"
- python: 3.5
env:
- TEST_SLOW="true"
- SPLIT="2/3"
- python: 3.5
env:
- TEST_SLOW="true"
- SPLIT="3/3"
- python: 2.7
env:
- TEST_AUTOWRAP="true"
addons:
apt:
packages:
- gfortran
- gcc
- python-numpy
- cython
virtualenv:
system_site_packages: true
# Everything here and below is in the allow_failures. The need to be
# duplicated here and in that section below.
- python: 3.5
env:
- TEST_AUTOWRAP="true"
addons:
apt:
packages:
- gfortran
- gcc
- python-numpy
- cython
virtualenv:
system_site_packages: true
- python: 3.5 # Dummy value
env:
- TEST_SAGE="true"
- FASTCACHE="false"
- TEST_TENSORFLOW="true"
sudo: true
dist: trusty
- python: "pypy"
env:
- TEST_DOCTESTS="true"
- FASTCACHE="false"
- TEST_SETUP="true"
addons:
apt:
sources:
- pypy
packages:
- pypy
- python: "pypy"
env:
- TEST_SYMPY="true"
- SPLIT="1/4"
- FASTCACHE="false"
addons:
apt:
sources:
- pypy
packages:
- pypy
- python: "pypy"
env:
- TEST_SYMPY="true"
- SPLIT="2/4"
- FASTCACHE="false"
addons:
apt:
sources:
- pypy
packages:
- pypy
- python: "pypy"
env:
- TEST_SYMPY="true"
- SPLIT="3/4"
- FASTCACHE="false"
addons:
apt:
sources:
- pypy
packages:
- pypy
- python: "pypy"
env:
- TEST_SYMPY="true"
- SPLIT="4/4"
- FASTCACHE="false"
addons:
apt:
sources:
- pypy
packages:
- pypy
allow_failures:
# Fails because of some issues with Travis
- python: 3.5
env:
- TEST_AUTOWRAP="true"
addons:
apt:
packages:
- gfortran
- gcc
- python-numpy
- cython
virtualenv:
system_site_packages: true
# The apt installation of sage fails sometimes
- python: 3.5 # Dummy value
env:
- TEST_SAGE="true"
- FASTCACHE="false"
- TEST_TENSORFLOW="true"
sudo: true
dist: trusty
# PyPy randomly fails because of some PyPy bugs (Fatal RPython error: AssertionError)
- python: "pypy"
env:
- TEST_DOCTESTS="true"
- FASTCACHE="false"
- TEST_SETUP="true"
addons:
apt:
sources:
- pypy
packages:
- pypy
- python: "pypy"
env:
- TEST_SYMPY="true"
- SPLIT="1/4"
- FASTCACHE="false"
addons:
apt:
sources:
- pypy
packages:
- pypy
- python: "pypy"
env:
- TEST_SYMPY="true"
- SPLIT="2/4"
- FASTCACHE="false"
addons:
apt:
sources:
- pypy
packages:
- pypy
- python: "pypy"
env:
- TEST_SYMPY="true"
- SPLIT="3/4"
- FASTCACHE="false"
addons:
apt:
sources:
- pypy
packages:
- pypy
- python: "pypy"
env:
- TEST_SYMPY="true"
- SPLIT="4/4"
- FASTCACHE="false"
addons:
apt:
sources:
- pypy
packages:
- pypy
before_install:
- if [[ "${FASTCACHE}" != "false" ]]; then
pip install fastcache;
fi
- if [[ "${TEST_AUTOWRAP}" == "true" ]]; then
pip uninstall -y numpy;
fi
- if [[ "${TEST_GMPY}" == "true" ]]; then
pip install "gmpy==1.16";
fi
- if [[ "${TEST_SPHINX}" == "true" ]]; then
pip install "sphinx==1.3.1" doctr;
fi
- |
if [[ "${TEST_MATPLOTLIB}" == "true" ]]; then
# We do this conditionally because it saves us some downloading if the
# version is the same.
if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
bash miniconda.sh -b -p $HOME/miniconda;
export PATH="$HOME/miniconda/bin:$PATH";
hash -r;
conda config --set always_yes yes --set changeps1 no;
conda update -q conda;
conda info -a;
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION matplotlib numpy scipy pip llvmlite;
source activate test-environment;
fi
- |
if [[ "${TEST_THEANO}" == "true" ]]; then
# this assumes TEST_THEANO runs in the same build as TEST_MATPLOTLIB
conda install theano;
fi
- |
if [[ "${TEST_TENSORFLOW}" == "true" ]]; then
pip install mpmath;
if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl;
elif [[ "$TRAVIS_PYTHON_VERSION" == "3.4" ]]; then
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp34-cp34m-linux_x86_64.whl;
elif [[ "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp35-cp35m-linux_x86_64.whl;
fi
fi
- if [[ "${TEST_SAGE}" == "true" ]]; then
sudo apt-add-repository -y ppa:aims/sagemath;
sudo apt-get update;
sudo apt-get install -y sagemath-upstream-binary;
fi
install:
#The install cycle below is to test installation on systems without setuptools.
- if [ "$TRAVIS_PYTHON_VERSION" = "pypy" ];
then virtualenv -p /usr/bin/pypy ~/.venv;
. ~/.venv/bin/activate;
fi
- if [[ "${TEST_AUTOWRAP}" == "true" ]]; then
pip uninstall -y setuptools;
python setup.py install;
pip uninstall -y sympy;
pip install setuptools;
python setup.py install;
elif [[ "${TEST_SAGE}" != "true" ]]; then
python setup.py install;
fi
script:
- bin/test_travis.sh
- if [[ "${TEST_SPHINX}" == "true" ]]; then
doctr deploy --deploy-repo sympy/sympy_doc --gh-pages-docs dev --command './generate_indexes.py';
fi
notifications:
email: false