@@ -54,7 +54,7 @@ _build_main_image_py36: &build_main_image_py36
54
54
--tag nipype/nipype:py36 \
55
55
--build-arg BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
56
56
--build-arg VCS_REF="$(git rev-parse --short HEAD)" \
57
- --build-arg VERSION="${CIRCLE_TAG}" /home/circleci/nipype \
57
+ --build-arg VERSION="${CIRCLE_TAG}" /home/circleci/nipype
58
58
59
59
_build_main_image_py27 : &build_main_image_py27
60
60
name : Build main image (py27)
@@ -68,7 +68,7 @@ _build_main_image_py27: &build_main_image_py27
68
68
--build-arg PYTHON_VERSION_MINOR=7 \
69
69
--build-arg BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
70
70
--build-arg VCS_REF="$(git rev-parse --short HEAD)" \
71
- --build-arg VERSION="${CIRCLE_TAG}-py27" /home/circleci/nipype \
71
+ --build-arg VERSION="${CIRCLE_TAG}-py27" /home/circleci/nipype
72
72
73
73
_download_test_data : &_download_test_data
74
74
name : Download test data
@@ -299,7 +299,7 @@ jobs:
299
299
- run : *_run_codecov_smoke
300
300
- store_artifacts : *store_artifacts_kwds
301
301
302
- deploy :
302
+ deploy_dockerhub :
303
303
docker :
304
304
- image : docker:17.10.0-ce-git
305
305
steps :
@@ -330,6 +330,18 @@ jobs:
330
330
- /tmp/docker/cache/Dockerfile.base-pruned
331
331
key : dockerfile-cache-v1-{{ .Branch }}-{{ checksum "/tmp/docker/cache/Dockerfile.base-pruned" }}
332
332
333
+ deploy_pypi :
334
+ machine : *machine_kwds
335
+ working_directory : /home/circleci/nipype
336
+ steps :
337
+ - checkout :
338
+ path : /home/circleci/nipype
339
+ - run :
340
+ name : Deploy to PyPI
341
+ command : |
342
+ pip install twine future wheel
343
+ python setup.py sdist bdist_wheel
344
+ twine upload dist/*
333
345
334
346
workflows :
335
347
version : 2
@@ -348,7 +360,7 @@ workflows:
348
360
- test_fmri_spm_nested_fsl_feeds :
349
361
requires :
350
362
- compare_base_dockerfiles
351
- - deploy :
363
+ - deploy_dockerhub :
352
364
filters :
353
365
branches :
354
366
only : master
@@ -357,3 +369,14 @@ workflows:
357
369
- test_fmri_spm_nested_fsl_feeds
358
370
- test_py3_fmri_fsl_spm
359
371
- test_py3_fmri_spm_dartel_multiproc
372
+ - deploy_pypi :
373
+ filters :
374
+ branches :
375
+ ignore : /.*/
376
+ tags :
377
+ only : /.*/
378
+ requires :
379
+ - test_pytest
380
+ - test_fmri_spm_nested_fsl_feeds
381
+ - test_py3_fmri_fsl_spm
382
+ - test_py3_fmri_spm_dartel_multiproc
0 commit comments