Skip to content

Commit 47ddfcf

Browse files
committed
CI: Move PyPI deployment to Circle
1 parent 0498267 commit 47ddfcf

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

.circleci/config.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ jobs:
299299
- run: *_run_codecov_smoke
300300
- store_artifacts: *store_artifacts_kwds
301301

302-
deploy:
302+
deploy_dockerhub:
303303
docker:
304304
- image: docker:17.10.0-ce-git
305305
steps:
@@ -330,6 +330,16 @@ jobs:
330330
- /tmp/docker/cache/Dockerfile.base-pruned
331331
key: dockerfile-cache-v1-{{ .Branch }}-{{ checksum "/tmp/docker/cache/Dockerfile.base-pruned" }}
332332

333+
deploy_pypi:
334+
machine: *machine_kwds
335+
working_directory: /home/circleci/nipype
336+
steps:
337+
- run:
338+
name: Deploy to PyPI
339+
command: |
340+
pip install twine future
341+
python setup.py sdist bdist_wheel
342+
twine upload dist/*
333343
334344
workflows:
335345
version: 2
@@ -348,7 +358,7 @@ workflows:
348358
- test_fmri_spm_nested_fsl_feeds:
349359
requires:
350360
- compare_base_dockerfiles
351-
- deploy:
361+
- deploy_dockerhub:
352362
filters:
353363
branches:
354364
only: master
@@ -357,3 +367,14 @@ workflows:
357367
- test_fmri_spm_nested_fsl_feeds
358368
- test_py3_fmri_fsl_spm
359369
- test_py3_fmri_spm_dartel_multiproc
370+
- deploy_pypi:
371+
filters:
372+
branches:
373+
ignore: /.*/
374+
tags:
375+
only: /.*/
376+
requires:
377+
- test_pytest
378+
- test_fmri_spm_nested_fsl_feeds
379+
- test_py3_fmri_fsl_spm
380+
- test_py3_fmri_spm_dartel_multiproc

.travis.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,5 @@ install:
6060
script:
6161
- py.test -v --cov nipype --cov-config .coveragerc --cov-report xml:cov.xml -c nipype/pytest.ini --doctest-modules nipype
6262

63-
deploy:
64-
provider: pypi
65-
user: satra
66-
password:
67-
secure: OCO0FXb4f+pH4Uw7zWCIRp3qOJ1t7rhky4K8MjNU8tyVCJgd6O/Bv8GJgceS0LktPodlAAjB8SxAhTORPAQZ1D/44PJYy3NQIisvej1zjLpaA9TEGfl6W7MqhDpRyMHW+cnSi/n84SAmdr+Z4vOxScDHdwr13EPmGyOIlHMAGnE=
68-
on:
69-
tags: true
70-
repo: nipy/nipype
71-
branch: master
72-
distributions: "sdist bdist_wheel"
73-
7463
after_script:
7564
- codecov --file cov.xml --flags unittests -e TRAVIS_JOB_NUMBER

0 commit comments

Comments
 (0)