From 4f9e835472a70678012610201d24de4eecbeed0a Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 15 Feb 2019 18:51:42 +0100 Subject: [PATCH] Travis: remove cron_only stage, use conditional job Ref: https://github.com/pytest-dev/pytest/pull/4789#issuecomment-464135675 --- .travis.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index d42400844..9010ae1c2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,6 @@ stages: if: repo = pytest-dev/pytest AND tag IS NOT present - name: deploy if: repo = pytest-dev/pytest AND tag IS present -- name: cron_only - if: type = cron python: - '3.7' install: @@ -58,16 +56,17 @@ jobs: - brew unlink 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 env: TOXENV=py27-pexpect,py27-trial,py27-numpy - env: TOXENV=py37-xdist - env: TOXENV=linting,docs,doctesting python: '3.7' - - stage: cron_only - env: TOXENV=py38-xdist - python: '3.8-dev' - - stage: deploy python: '3.6' env: PYTEST_NO_COVERAGE=1