Skip to content

Commit 62ddfaf

Browse files
authored
Merge pull request #2215 from astaric/travis-coverage-upload
travis: Avoid multiple uploads of coverage report
2 parents 4d61610 + 3335a1c commit 62ddfaf

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ matrix:
1717
script: source $TRAVIS_BUILD_DIR/.travis/build_doc.sh
1818
- &pyqt5
1919
python: '3.5'
20-
env: PYQT5=true
20+
env:
21+
- PYQT5=true
22+
- UPLOAD_COVERAGE=true
2123
dist: trusty
2224
addons: { apt: { packages: [] } }
2325
fast_finish: true

.travis/stage_after_success.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ if [ "$BUILD_DOCS" ] &&
88
return 0
99
fi
1010

11-
codecov
11+
if [ "$UPLOAD_COVERAGE" ]; then
12+
codecov
13+
fi
14+
1215
cd $TRAVIS_BUILD_DIR

0 commit comments

Comments
 (0)