From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 16 Jun 2020 15:47:16 +0000 (-0700) Subject: bpo-40993: Don't run Travis CI coverage on PRs (GH-20916) X-Git-Tag: v3.8.4rc1~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=071bed842eeff9673bc5c4f64e3916a151132d2a;p=thirdparty%2FPython%2Fcpython.git 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 --- diff --git a/.travis.yml b/.travis.yml index 1d3eb737abff..2b6fed617526 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