Merge pull request #4856 from blueyed/travis-no-cov-with-cron

ci: Travis: skip coverage with cron runs
This commit is contained in:
Bruno Oliveira 2019-03-01 09:03:56 -03:00 committed by GitHub
commit 276ffa81f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

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