diff --git a/.travis.yml b/.travis.yml index 69dc06582..fba5eaff7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -85,6 +85,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"