From 9c590fa474259ad80fa0b42be43813a44f48dec1 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 28 Feb 2019 19:40:24 +0100 Subject: [PATCH] ci: Travis: skip coverage with cron runs The current commit on features has 50+ uploads already: https://codecov.io/gh/pytest-dev/pytest/commit/c7bbb2a78873a63b9df9df08f8dc77cde30debd3/build --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index be30f0151..d522fcace 100644 --- a/.travis.yml +++ b/.travis.yml @@ -86,6 +86,11 @@ jobs: repo: pytest-dev/pytest before_script: + - | + # Do not (re-)upload coverage with cron runs. + if [[ "$TRAVIS_EVENT_TYPE" = cron ]]; then + PYTEST_COVERAGE=0 + fi - | if [[ "$PYTEST_COVERAGE" = 1 ]]; then export COVERAGE_FILE="$PWD/.coverage"