From 619cb34d8f6453c2ec07946a362d68c1174f3386 Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Tue, 29 May 2018 12:23:05 -0400 Subject: [PATCH] CI: Add PyPI validation on rel/* branches --- .circleci/config.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index de354e8c29..ef55a28734 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -330,6 +330,19 @@ jobs: - /tmp/docker/cache/Dockerfile.base-pruned key: dockerfile-cache-v1-{{ .Branch }}-{{ checksum "/tmp/docker/cache/Dockerfile.base-pruned" }} + pypi_precheck: + machine: *machine_kwds + working_directory: /home/circleci/nipype + steps: + - checkout: + path: /home/circleci/nipype + - run: + name: Check pypi preconditions + command: | + pip install twine future wheel readme_renderer + python setup.py check -r -s + python setup.py sdist bdist_wheel + deploy_pypi: machine: *machine_kwds working_directory: /home/circleci/nipype @@ -339,7 +352,8 @@ jobs: - run: name: Deploy to PyPI command: | - pip install twine future wheel + pip install twine future wheel readme_renderer + python setup.py check -r -s python setup.py sdist bdist_wheel twine upload dist/* @@ -422,3 +436,7 @@ workflows: only: /rel\/.*/ tags: only: /.*/ + - pypi_precheck: + filters: + branches: + only: /rel\/.*/