Skip to content

Commit 276ffa8

Browse files
authored
Merge pull request #4856 from blueyed/travis-no-cov-with-cron
ci: Travis: skip coverage with cron runs
2 parents 5061031 + 9c590fa commit 276ffa8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ jobs:
8585
repo: pytest-dev/pytest
8686

8787
before_script:
88+
- |
89+
# Do not (re-)upload coverage with cron runs.
90+
if [[ "$TRAVIS_EVENT_TYPE" = cron ]]; then
91+
PYTEST_COVERAGE=0
92+
fi
8893
- |
8994
if [[ "$PYTEST_COVERAGE" = 1 ]]; then
9095
export COVERAGE_FILE="$PWD/.coverage"

0 commit comments

Comments
 (0)