@@ -63,194 +63,3 @@ jobs:
63
63
make lint
64
64
displayName: Linting (pylint)
65
65
condition: succeededOrFailed()
66
-
67
-
68
- # Mac
69
- # #######################################################################################
70
- - job :
71
- displayName : ' Mac'
72
-
73
- pool :
74
- vmImage : ' macOS-10.14'
75
-
76
- variables :
77
- CONDA_REQUIREMENTS : requirements.txt
78
- CONDA_REQUIREMENTS_DEV : requirements-dev.txt
79
- CONDA_INSTALL_EXTRA : " codecov gmt=6.0.0"
80
-
81
- strategy :
82
- matrix :
83
- Python38 :
84
- python.version : ' 3.8'
85
- PYTHON : ' 3.8'
86
- Python37 :
87
- python.version : ' 3.7'
88
- PYTHON : ' 3.7'
89
- Python36 :
90
- python.version : ' 3.6'
91
- PYTHON : ' 3.6'
92
-
93
- steps :
94
-
95
- - bash : echo "##vso[task.prependpath]$CONDA/bin"
96
- displayName : Add conda to PATH
97
-
98
- # Get the Fatiando CI scripts
99
- - bash : git clone --branch=1.2.0 --depth=1 https://github.com/fatiando/continuous-integration.git
100
- displayName : Fetch the Fatiando CI scripts
101
-
102
- # On Hosted macOS, the agent user doesn't have ownership of Miniconda's installation
103
- # directory. We need to take ownership if we want to update conda or install packages
104
- # globally.
105
- - bash : sudo chown -R $USER $CONDA
106
- displayName : Take ownership of conda installation
107
-
108
- # Setup dependencies and build a conda environment
109
- - bash : source continuous-integration/azure/setup-miniconda.sh
110
- displayName : Setup Miniconda
111
-
112
- # Show installed pkg information for postmortem diagnostic
113
- - bash : |
114
- set -x -e
115
- source activate testing
116
- conda list
117
- displayName: List installed packages
118
-
119
- # Cache the ${HOME}/.gmt directory, for docs and testing
120
- - task : Cache@2
121
- inputs :
122
- key : cachedata | 20200524
123
- path : $(HOME)/.gmt
124
- cacheHitVar : CACHE_CACHEDATA_RESTORED
125
- displayName : Cache GMT remote data for testing
126
-
127
- # Download remote files, if not already cached
128
- - bash : |
129
- set -x -e
130
- source activate testing
131
- gmt which -Gu @earth_relief_10m @earth_relief_01d @ridge.txt @Table_5_11.txt @tut_bathy.nc @tut_quakes.ngdc @tut_ship.xyz
132
- displayName: Download remote data
133
- condition: ne(variables['CACHE_CACHEDATA_RESTORED'], true)
134
-
135
- # Install the package
136
- - bash : |
137
- set -x -e
138
- source activate testing
139
- python setup.py bdist_wheel
140
- pip install dist/*
141
- displayName: Install the package
142
-
143
- # Run the tests
144
- - bash : |
145
- set -x -e
146
- source activate testing
147
- make test PYTEST_EXTRA="-r P"
148
- displayName: Test
149
-
150
- # Build the documentation
151
- - bash : |
152
- set -x -e
153
- source activate testing
154
- make -C doc clean all
155
- displayName: Build the documentation
156
-
157
- # Upload test coverage if there were no failures
158
- - bash : |
159
- set -x -e
160
- source activate testing
161
- coverage xml
162
- echo "Uploading coverage to Codecov"
163
- codecov -e PYTHON AGENT_OS
164
- env:
165
- CODECOV_TOKEN: $(codecov.token)
166
- condition: succeeded()
167
- displayName: Upload coverage
168
-
169
-
170
- # Windows
171
- # #######################################################################################
172
- - job :
173
- displayName : ' Windows'
174
-
175
- pool :
176
- vmImage : ' vs2017-win2016'
177
-
178
- variables :
179
- CONDA_REQUIREMENTS : requirements.txt
180
- CONDA_REQUIREMENTS_DEV : requirements-dev.txt
181
- CONDA_INSTALL_EXTRA : " codecov gmt=6.0.0"
182
-
183
- strategy :
184
- matrix :
185
- Python38 :
186
- python.version : ' 3.8'
187
- PYTHON : ' 3.8'
188
- Python37 :
189
- python.version : ' 3.7'
190
- PYTHON : ' 3.7'
191
- Python36 :
192
- python.version : ' 3.6'
193
- PYTHON : ' 3.6'
194
-
195
- steps :
196
-
197
- - powershell : Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
198
- displayName : Add conda to PATH
199
-
200
- # Get the Fatiando CI scripts
201
- - script : git clone --branch=1.2.0 --depth=1 https://github.com/fatiando/continuous-integration.git
202
- displayName : Fetch the Fatiando CI scripts
203
-
204
- # Setup dependencies and build a conda environment
205
- - script : continuous-integration/azure/setup-miniconda.bat
206
- displayName : Setup Miniconda
207
-
208
- # Show installed pkg information for postmortem diagnostic
209
- - bash : |
210
- set -x -e
211
- source activate testing
212
- conda list
213
- displayName: List installed packages
214
-
215
- # Cache the ${HOME}/.gmt directory, for docs and testing
216
- - task : Cache@2
217
- inputs :
218
- key : cachedata | 20200524
219
- path : $(HOMEPATH)/.gmt
220
- cacheHitVar : CACHE_CACHEDATA_RESTORED
221
- displayName : Cache GMT remote data for testing
222
-
223
- # Download remote files, if not already cached
224
- - bash : |
225
- set -x -e
226
- source activate testing
227
- gmt which -Gu @earth_relief_10m @earth_relief_01d @ridge.txt @Table_5_11.txt @tut_bathy.nc @tut_quakes.ngdc @tut_ship.xyz
228
- displayName: Download remote data
229
- condition: ne(variables['CACHE_CACHEDATA_RESTORED'], true)
230
-
231
- # Install the package that we want to test
232
- - bash : |
233
- set -x -e
234
- source activate testing
235
- python setup.py sdist --formats=zip
236
- pip install dist/*
237
- displayName: Install the package
238
-
239
- # Run the tests
240
- - bash : |
241
- set -x -e
242
- source activate testing
243
- make test PYTEST_EXTRA="-r P"
244
- displayName: Test
245
-
246
- # Upload test coverage if there were no failures
247
- - bash : |
248
- set -x -e
249
- source activate testing
250
- coverage report -m
251
- coverage xml
252
- codecov -e PYTHON AGENT_OS
253
- env:
254
- CODECOV_TOKEN: $(codecov.token)
255
- condition: succeeded()
256
- displayName: Upload coverage
0 commit comments