@@ -56,20 +56,6 @@ _build_main_image_py36: &build_main_image_py36
5656 --build-arg VCS_REF="$(git rev-parse --short HEAD)" \
5757 --build-arg VERSION="${CIRCLE_TAG}" /home/circleci/nipype
5858
59- _build_main_image_py27 : &build_main_image_py27
60- name : Build main image (py27)
61- no_output_timeout : 60m
62- command : |
63- tools/retry_cmd.sh -n 5 -s 15 \
64- docker build \
65- --rm=false \
66- --tag nipype/nipype:py27 \
67- --build-arg PYTHON_VERSION_MAJOR=2 \
68- --build-arg PYTHON_VERSION_MINOR=7 \
69- --build-arg BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
70- --build-arg VCS_REF="$(git rev-parse --short HEAD)" \
71- --build-arg VERSION="${CIRCLE_TAG}-py27" /home/circleci/nipype
72-
7359_download_test_data : &_download_test_data
7460 name : Download test data
7561 no_output_timeout : 20m
@@ -161,28 +147,22 @@ jobs:
161147 - run : *modify_nipype_version
162148 - run : *get_base_image
163149 - run : *build_main_image_py36
164- - run : *build_main_image_py27
165150 - run : *_get_codecov
166151 - run : *_download_test_data
167152 - run : *prepare_working_directory
168153 - run :
169- name : Run pytests (py36)
154+ name : Run pytests
170155 no_output_timeout : 30m
171156 environment : *test_environment
172- command : bash -ux /home/circleci/nipype/.circleci/test_py3_pytest.sh
173- - run :
174- name : Run pytests (py27)
175- no_output_timeout : 30m
176- environment : *test_environment
177- command : bash -ux /home/circleci/nipype/.circleci/test_py2_pytest.sh
157+ command : bash -ux /home/circleci/nipype/.circleci/test_pytest.sh
178158 - run : *_run_codecov_coverage
179159 - store_artifacts : *store_artifacts_kwds
180160 - store_test_results : *store_artifacts_kwds
181161 - run :
182- name : Build docs (py36)
162+ name : Build docs
183163 no_output_timeout : 30m
184164 environment : *test_environment
185- command : bash -ux /home/circleci/nipype/.circleci/test_py3_docs .sh
165+ command : bash -ux /home/circleci/nipype/.circleci/build_docs .sh
186166 - store_artifacts :
187167 path : /home/circleci/work/docs
188168 - run :
@@ -192,16 +172,15 @@ jobs:
192172 if [ "$CIRCLE_BRANCH" = "master" -a -z "$CIRCLE_PULL_REQUEST" ]; then
193173 docker save nipype/nipype:base \
194174 nipype/nipype:latest \
195- nipype/nipype:py27 \
196- nipype/nipype:py36 | gzip -1 > /tmp/docker/nipype-base-latest-py36-py27.tar.gz \
197- && du -h /tmp/docker/nipype-base-latest-py36-py27.tar.gz
175+ nipype/nipype:py36 | gzip -1 > /tmp/docker/nipype-base-latest-py36.tar.gz \
176+ && du -h /tmp/docker/nipype-base-latest-py36.tar.gz
198177 fi
199178 - persist_to_workspace :
200179 root : /tmp
201180 paths :
202181 - docker
203182
204- test_py3_fmri_fsl_spm :
183+ test_fmri_fsl_spm :
205184 machine : *machine_kwds
206185 working_directory : /home/circleci/nipype
207186 steps :
@@ -218,24 +197,24 @@ jobs:
218197 - run : *_download_test_data
219198 - run : *prepare_working_directory
220199 - run :
221- name : Run FSL reuse pipeline (py36)
200+ name : Run FSL reuse pipeline
222201 no_output_timeout : 40m
223202 environment : *test_environment
224- command : bash -ux /home/circleci/nipype/.circleci/test_py3_fmri_fsl_reuse_linear_l1 .sh
203+ command : bash -ux /home/circleci/nipype/.circleci/test_fmri_fsl_reuse_linear_l1 .sh
225204 - run :
226- name : Run SPM test workflow - 3D inputs (py36)
205+ name : Run SPM test workflow - 3D inputs
227206 no_output_timeout : 40m
228207 environment : *test_environment
229- command : bash -ux /home/circleci/nipype/.circleci/test_py3_fmri_spm_linear_3d .sh
208+ command : bash -ux /home/circleci/nipype/.circleci/test_fmri_spm_linear_3d .sh
230209 - run :
231- name : Run SPM test workflow - 4D inputs (py36)
210+ name : Run SPM test workflow - 4D inputs
232211 no_output_timeout : 40m
233212 environment : *test_environment
234- command : bash -ux /home/circleci/nipype/.circleci/test_py3_fmri_spm_linear_4d .sh
213+ command : bash -ux /home/circleci/nipype/.circleci/test_fmri_spm_linear_4d .sh
235214 - run : *_run_codecov_smoke
236215 - store_artifacts : *store_artifacts_kwds
237216
238- test_py3_fmri_spm_dartel_multiproc :
217+ test_fmri_spm_dartel_multiproc :
239218 machine : *machine_kwds
240219 working_directory : /home/circleci/nipype
241220 steps :
@@ -252,15 +231,15 @@ jobs:
252231 - run : *_download_test_data
253232 - run : *prepare_working_directory
254233 - run :
255- name : Run SPM DARTEL Level 1 pipeline (py36)
234+ name : Run SPM DARTEL Level 1 pipeline
256235 no_output_timeout : 1h
257236 environment : *test_environment
258- command : bash -ux /home/circleci/nipype/.circleci/test_py3_fmri_spm_dartel_multiproc_l1 .sh
237+ command : bash -ux /home/circleci/nipype/.circleci/test_fmri_spm_dartel_multiproc_l1 .sh
259238 - run :
260- name : Run SPM DARTEL Level 2 pipeline (py36)
239+ name : Run SPM DARTEL Level 2 pipeline
261240 no_output_timeout : 30m
262241 environment : *test_environment
263- command : bash -ux /home/circleci/nipype/.circleci/test_py3_fmri_spm_dartel_multiproc_l2 .sh
242+ command : bash -ux /home/circleci/nipype/.circleci/test_fmri_spm_dartel_multiproc_l2 .sh
264243 - run : *_run_codecov_smoke
265244 - store_artifacts : *store_artifacts_kwds
266245
@@ -277,25 +256,24 @@ jobs:
277256 - run : *modify_nipype_version
278257 - run : *get_base_image
279258 - run : *build_main_image_py36
280- - run : *build_main_image_py27
281259 - run : *_get_codecov
282260 - run : *_download_test_data
283261 - run : *prepare_working_directory
284262 - run :
285- name : Run SPM Nested Level 1 pipeline (py36)
263+ name : Run SPM Nested Level 1 pipeline
286264 no_output_timeout : 1h
287265 environment : *test_environment
288- command : bash -ux /home/circleci/nipype/.circleci/test_py3_fmri_spm_nested_multiproc_l1 .sh
266+ command : bash -ux /home/circleci/nipype/.circleci/test_fmri_spm_nested_multiproc_l1 .sh
289267 - run :
290- name : Run SPM Nested Level 2 pipeline (py27)
268+ name : Run SPM Nested Level 2 pipeline
291269 no_output_timeout : 30m
292270 environment : *test_environment
293- command : bash -ux /home/circleci/nipype/.circleci/test_py2_fmri_spm_nested_multiproc_l2 .sh
271+ command : bash -ux /home/circleci/nipype/.circleci/test_fmri_spm_nested_multiproc_l2 .sh
294272 - run :
295- name : Run FSL FEEDS pipeline (py36)
273+ name : Run FSL FEEDS pipeline
296274 no_output_timeout : 40m
297275 environment : *test_environment
298- command : bash -ux /home/circleci/nipype/.circleci/test_py3_fmri_fsl_feeds_linear_l1 .sh
276+ command : bash -ux /home/circleci/nipype/.circleci/test_fmri_fsl_feeds_linear_l1 .sh
299277 - run : *_run_codecov_smoke
300278 - store_artifacts : *store_artifacts_kwds
301279
@@ -310,7 +288,7 @@ jobs:
310288 name : Load saved Docker images.
311289 no_output_timeout : 60m
312290 command : |
313- docker load < /tmp/docker/nipype-base-latest-py36-py27 .tar.gz
291+ docker load < /tmp/docker/nipype-base-latest-py36.tar.gz
314292 - run :
315293 name : Push to DockerHub
316294 no_output_timeout : 120m
@@ -319,7 +297,6 @@ jobs:
319297 docker push nipype/nipype:base
320298 docker push nipype/nipype:latest
321299 docker push nipype/nipype:py36
322- docker push nipype/nipype:py27
323300 - run :
324301 name : Move pruned Dockerfile to /tmp/docker/cache directory
325302 command : |
@@ -343,30 +320,20 @@ jobs:
343320 pip install --upgrade pip twine future wheel readme_renderer setuptools
344321 python setup.py sdist bdist_wheel
345322 twine check dist/*
346- - run :
347- name : Validate Python 2 installation
348- command : |
349- pyenv local 2.7.12
350- pip install --upgrade pip
351- pip install dist/nipype-*-py2.py3-none-any.whl
352- # Futures should install in Python 2
353- pip show futures 2>/dev/null | grep "Name: futures"
354323 - run :
355324 name : Validate Python 3 installation
356325 command : |
357326 pyenv local 3.6.5
358327 pip install --upgrade pip
359- pip install dist/nipype-*-py2.py3-none-any.whl
360- # Futures should not install in Python 3
361- test $(pip show futures 2>/dev/null | wc -l) = "0"
328+ pip install dist/nipype-*-py3-none-any.whl
362329 - run :
363330 name : Validate Python 3.7 installation
364331 command : |
365332 pyenv local 3.7.0
366333 pip install --upgrade pip
367334 # Pre-install a version of numpy that will not pass
368335 pip install numpy==1.15.0
369- pip install dist/nipype-*-py2. py3-none-any.whl
336+ pip install dist/nipype-*-py3-none-any.whl
370337 # Numpy should be upgraded to >= 1.15.3
371338 test "$(pip show numpy | grep Version)" \> "Version: 1.15.2"
372339 - run :
@@ -390,7 +357,7 @@ jobs:
390357 name : Deploy to PyPI
391358 command : |
392359 pyenv local 3.6.5
393- pip install --upgrade twine future wheel readme_renderer setuptools
360+ pip install --upgrade twine wheel readme_renderer setuptools
394361 python setup.py check -r -s
395362 python setup.py sdist bdist_wheel
396363 twine upload dist/*
@@ -434,7 +401,7 @@ workflows:
434401 - pypi_precheck :
435402 filters :
436403 branches :
437- only : /rel\/.*/
404+ only : /( rel|dev) \/.*/
438405 tags :
439406 only : /.*/
440407 - compare_base_dockerfiles :
@@ -447,10 +414,10 @@ workflows:
447414 only : /.*/
448415 requires :
449416 - compare_base_dockerfiles
450- - test_py3_fmri_fsl_spm :
417+ - test_fmri_fsl_spm :
451418 requires :
452419 - compare_base_dockerfiles
453- - test_py3_fmri_spm_dartel_multiproc :
420+ - test_fmri_spm_dartel_multiproc :
454421 requires :
455422 - compare_base_dockerfiles
456423 - test_fmri_spm_nested_fsl_feeds :
@@ -463,8 +430,8 @@ workflows:
463430 requires :
464431 - test_pytest
465432 - test_fmri_spm_nested_fsl_feeds
466- - test_py3_fmri_fsl_spm
467- - test_py3_fmri_spm_dartel_multiproc
433+ - test_fmri_fsl_spm
434+ - test_fmri_spm_dartel_multiproc
468435 - deploy_pypi :
469436 filters :
470437 branches :
0 commit comments