From 49e82a4be8efe8a38b9208724e3681db413f22be Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 7 Jul 2018 12:12:07 -0300 Subject: [PATCH] Skip deploy stage entirely unless we have a tag Borrowed from https://github.com/tox-dev/tox/pull/877 --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f2921e118..28393a0b7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,8 @@ language: python stages: - linting - test -- deploy +- name: deploy + if: repo = pytest-dev/pytest AND tag IS present python: - '3.6' install: