forked from sympy/sympy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
230 lines (204 loc) · 5.57 KB
/
azure-pipelines.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
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
variables:
conda.optional.dependencies: >-
python=$(python.version)
mpmath
numpy
scipy
gmpy2
matplotlib>=2.2
theano
llvmlite
autowrap
cython
wurlitzer
python-symengine=0.3.*
tensorflow
numexpr
ipython
antlr-python-runtime>=4.7,<4.8
antlr>=4.7,<4.8
cloudpickle
gcc
jobs:
- job: 'Doctests'
pool:
vmImage: 'Ubuntu 16.04'
strategy:
matrix:
Python 2.7:
python.version: '2.7'
pypy: false
Python 3.4:
python.version: '3.4'
pypy: false
Python 3.5:
python.version: '3.5'
pypy: false
Python 3.6:
python.version: '3.6'
pypy: false
Python 3.7:
python.version: '3.7'
pypy: false
# PyPy:
# python.version: 'none'
# pypy: true
steps:
- task: UsePythonVersion@0
condition: eq(variables.pypy, false)
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
# TODO: Get pypy working. The below is a start (but doesn't work). It would
# be easier if https://github.com/Microsoft/vsts-tasks/issues/8514 were
# fixed.
# - script: |
# set -x
# set -e
# sudo chmod a+w -R /opt/pypy3/
# pypy3 --version
# pypy3 -m ensurepip
# pypy3 -m pip install --upgrade pip
# pypy3 -m venv ~/.venv;
# . ~/.venv/bin/activate
# echo '##vso[task.prependpath]~/.venv/bin'
# condition: eq(variables.pypy, true)
# displayName: 'Create PyPy virtualenv'
- script: python -m pip install --upgrade pip && pip install mpmath
displayName: 'Install dependencies'
- script: |
python -We:invalid -m compileall -f sympy/;
python -We:invalid setup.py -q install;
pip list --format=columns;
displayName: 'Install SymPy'
- script: |
./bin/test_travis.sh
displayName: 'doctests'
env:
TEST_DOCTESTS: 'true'
- job: 'Tests'
pool:
vmImage: 'Ubuntu 16.04'
strategy:
matrix:
Python 2.7 Split 1/2:
python.version: '2.7'
SPLIT: '1/2'
Python 3.4 Split 1/2:
python.version: '3.4'
SPLIT: '1/2'
Python 3.5 Split 1/2:
python.version: '3.5'
SPLIT: '1/2'
Python 3.6 Split 1/2:
python.version: '3.6'
SPLIT: '1/2'
Python 3.7 Split 1/2:
python.version: '3.7'
SPLIT: '1/2'
Python 2.7 Split 2/2:
python.version: '2.7'
SPLIT: '2/2'
Python 3.4 Split 2/2:
python.version: '3.4'
SPLIT: '2/2'
Python 3.5 Split 2/2:
python.version: '3.5'
SPLIT: '2/2'
Python 3.6 Split 2/2:
python.version: '3.6'
SPLIT: '2/2'
Python 3.7 Split 2/2:
python.version: '3.7'
SPLIT: '2/2'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
- script: python -m pip install --upgrade pip && pip install mpmath
displayName: 'Install dependencies'
- script: |
python -We:invalid -m compileall -f sympy/;
python -We:invalid setup.py -q install;
pip list --format=columns;
displayName: 'Install SymPy'
- script: |
./bin/test_travis.sh
displayName: 'tests'
env:
TEST_SYMPY: 'true'
SPLIT: '$(SPLIT)'
- job: 'Optional_dependencies'
# Allow this build to fail. There are gfortran issues that should be fixed
# once the conda-forge compiler migration is finished.
continueOnError: true
pool:
vmImage: 'Ubuntu 16.04'
strategy:
matrix:
Python 2.7:
python.version: '2.7'
Python 3.6:
python.version: '3.6'
steps:
# Remove this when https://github.com/Microsoft/vsts-tasks/issues/8299 is
# fixed.
- script: sudo install -d -m 0777 /usr/envs
displayName: Fix Conda permissions
- task: CondaEnvironment@0
inputs:
createCustomEnvironment: true
createOptions: "-c conda-forge"
environmentName: 'optional-dependencies'
packageSpecs: $(conda.optional.dependencies)
displayName: 'Create conda environment'
- script: |
python -We:invalid -m compileall -f sympy/;
python -We:invalid setup.py -q install;
pip list --format=columns;
displayName: 'Install SymPy'
- script: |
./bin/test_travis.sh
displayName: 'optional dependencies tests'
env:
TEST_ASCII: 'true'
TEST_OPT_DEPENDENCY: $(conda.optional.dependencies)
CPATH: $CONDA_PREFIX/include
LIBRARY_PATH: $CONDA_PREFIX/lib
LD_LIBRARY_PATH: $CONDA_PREFIX/lib
SYMPY_STRICT_COMPILER_CHECKS: 1
- job: 'Sage_tests'
pool:
vmImage: 'Ubuntu 16.04'
strategy:
matrix:
Python 3.6:
python.version: '3.6'
steps:
# Remove this when https://github.com/Microsoft/vsts-tasks/issues/8299 is
# fixed.
- script: sudo install -d -m 0777 /usr/envs
displayName: Fix Conda permissions
- task: CondaEnvironment@0
inputs:
createCustomEnvironment: true
createOptions: "-c conda-forge"
environmentName: 'sage'
packageSpecs: sage mpmath ipython>=5.5.0,<6 python=3
displayName: 'Create conda environment'
- script: |
python -We:invalid -m compileall -f sympy/;
python -We:invalid setup.py -q install;
pip list --format=columns;
displayName: 'Install SymPy'
- script: |
./bin/test_travis.sh
displayName: 'Sage tests'
env:
TEST_SAGE: 'true'
AZURE: 'true'
# remove once https://github.com/Microsoft/vsts-tasks/issues/8504 is fixed
SAGE_ROOT: "/usr/envs/sage/"
SAGE_LOCAL: "/usr/envs/sage/"