diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-16 15:27:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 15:27:30 (GMT) |
commit | fc710ee266e9461fdba9933ec6004318db588820 (patch) | |
tree | 6bbf739bb6f570692621bbeb2391ed4eaefdb037 /.travis.yml | |
parent | e0bec69854ff17b1a6db9bc01db8c002761bb7a8 (diff) | |
download | cpython-fc710ee266e9461fdba9933ec6004318db588820.zip cpython-fc710ee266e9461fdba9933ec6004318db588820.tar.gz cpython-fc710ee266e9461fdba9933ec6004318db588820.tar.bz2 |
bpo-40993: Don't run Travis CI coverage on PRs (GH-20916)
C and Python coverage jobs of Travis CI are no longer run on pull
requests, only on branches like master.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 5d57150..a915f7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -82,6 +82,12 @@ matrix: packages: - xvfb before_script: + - | + if [[ "$TRAVIS_PULL_REQUEST" != "false" ]] + then + echo "Don't run Python coverage on pull requests." + exit + fi - ./configure - make -j4 # Need a venv that can parse covered code. @@ -109,6 +115,12 @@ matrix: - lcov - xvfb before_script: + - | + if [[ "$TRAVIS_PULL_REQUEST" != "false" ]] + then + echo "Don't run C coverage on pull requests." + exit + fi - ./configure script: - xvfb-run make -j4 coverage-report |