diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-06-16 15:47:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 15:47:16 (GMT) |
commit | 071bed842eeff9673bc5c4f64e3916a151132d2a (patch) | |
tree | 80c70f091b82268c8319da42cb1f431fbd7358c6 /.travis.yml | |
parent | e63cc2f64668bd1d4581f8efa7089af7e08863b8 (diff) | |
download | cpython-071bed842eeff9673bc5c4f64e3916a151132d2a.zip cpython-071bed842eeff9673bc5c4f64e3916a151132d2a.tar.gz cpython-071bed842eeff9673bc5c4f64e3916a151132d2a.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.
(cherry picked from commit fc710ee266e9461fdba9933ec6004318db588820)
Co-authored-by: Victor Stinner <vstinner@python.org>
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 1d3eb73..2b6fed6 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. @@ -106,6 +112,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 |