From 2d9732d60b2a26fa4ac24bac3f9c0632ac19459a Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Wed, 13 Sep 2017 21:53:07 +0300 Subject: [PATCH] Hide deploy job from CI unless commit is tagged Ref travis-ci/beta-features#28 --- .travis.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 77c30c5bb52..8578cd3cd3e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -69,18 +69,12 @@ jobs: - stage: deploy to PyPI <<: *_mainstream_python_base <<: *_reset_steps + # This prevents job from appearing in test plan unless commit is tagged: + if: tag IS present dist: trusty group: edge services: - docker - before_install: - # This must prevent further job progress - - | - if [ -z "$TRAVIS_TAG" ] - then - echo Not building wheels - exit 0 - fi script: - ./tools/run_docker.sh "aiohttp" deploy: