Travis: remove cron_only stage, use conditional job

Ref: https://github.com/pytest-dev/pytest/pull/4789#issuecomment-464135675
This commit is contained in:
Daniel Hahler 2019-02-15 18:51:42 +01:00
parent 498b994eb4
commit 4f9e835472
1 changed files with 5 additions and 6 deletions

View File

@ -6,8 +6,6 @@ stages:
if: repo = pytest-dev/pytest AND tag IS NOT present if: repo = pytest-dev/pytest AND tag IS NOT present
- name: deploy - name: deploy
if: repo = pytest-dev/pytest AND tag IS present if: repo = pytest-dev/pytest AND tag IS present
- name: cron_only
if: type = cron
python: python:
- '3.7' - '3.7'
install: install:
@ -58,16 +56,17 @@ jobs:
- brew unlink python - brew unlink python
- brew link python - brew link python
# Jobs only run via Travis cron jobs (currently daily).
- env: TOXENV=py38-xdist
python: '3.8-dev'
if: type = cron
- stage: baseline - stage: baseline
env: TOXENV=py27-pexpect,py27-trial,py27-numpy env: TOXENV=py27-pexpect,py27-trial,py27-numpy
- env: TOXENV=py37-xdist - env: TOXENV=py37-xdist
- env: TOXENV=linting,docs,doctesting - env: TOXENV=linting,docs,doctesting
python: '3.7' python: '3.7'
- stage: cron_only
env: TOXENV=py38-xdist
python: '3.8-dev'
- stage: deploy - stage: deploy
python: '3.6' python: '3.6'
env: PYTEST_NO_COVERAGE=1 env: PYTEST_NO_COVERAGE=1