ci: Travis: skip coverage with cron runs

The current commit on features has 50+ uploads already:
c7bbb2a788/build
This commit is contained in:
Daniel Hahler 2019-02-28 19:40:24 +01:00
parent 55b78ff780
commit 9c590fa474
1 changed files with 5 additions and 0 deletions

View File

@ -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"