Skip to content

Commit 9c590fa

Browse files
committed
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
1 parent 55b78ff commit 9c590fa

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
@@ -86,6 +86,11 @@ jobs:
8686
repo: pytest-dev/pytest
8787

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

0 commit comments

Comments
 (0)