Create 'baseline' stage for fast-failure of builds, similar to pytest

This commit is contained in:
Bruno Oliveira
2018-10-29 19:01:34 -03:00
parent 9217b80fb1
commit 673fe9bd67

View File

@@ -21,23 +21,26 @@ env:
- TOXENV=py-pytest31 - TOXENV=py-pytest31
- TOXENV=py-pytest32 - TOXENV=py-pytest32
- TOXENV=py-pytest33 - TOXENV=py-pytest33
- TOXENV=py-pytestlatest
install: pip install tox setuptools_scm install: pip install tox setuptools_scm
script: tox script: tox
stages: stages:
- linting - baseline
- test - test
- name: deploy - name: deploy
if: repo = pytest-dev/pytest-xdist AND tag IS present if: repo = pytest-dev/pytest-xdist AND tag IS present
jobs: jobs:
include: include:
- stage: linting - stage: baseline
python: '3.6' python: '3.6'
script: env: TOXENV=linting
- tox -e linting - python: '3.6'
env: TOXENV=py36-pytestlatest
- python: '2.7'
env: TOXENV=py27-pytestlatest
- stage: test - stage: test
# python x env above are already included into this stage # python x env above are already included into this stage
- python: "2.7" - python: "2.7"