Skip the "test" stage when making a release

Given that our guidelines demand that the CI have already passed, it seems
wasteful to run all those jobs again for the exact same commit.

As discussed in https://github.com/pytest-dev/pytest/pull/3906#issuecomment-417094481,
this will skip the "test" stage when building a tag for deployment.
This commit is contained in:
Bruno Oliveira 2018-08-29 17:54:58 -03:00
parent d76fb8345c
commit 3ca70692de
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,8 @@ sudo: false
language: python
stages:
- baseline
- test
- name: test
if: repo = pytest-dev/pytest AND tag IS NOT present
- name: deploy
if: repo = pytest-dev/pytest AND tag IS present
python: