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 | 3cf809475a93228a3cb310b4d10d38f3b9d44c1f (patch) | |
tree | 0ed59d413ad736aa350d629eb51f4d0e035db7c5 /.travis.yml | |
parent | 097b8b6d52e3d4991c68dce74f182718dc0eab9c (diff) | |
download | cpython-3cf809475a93228a3cb310b4d10d38f3b9d44c1f.zip cpython-3cf809475a93228a3cb310b4d10d38f3b9d44c1f.tar.gz cpython-3cf809475a93228a3cb310b4d10d38f3b9d44c1f.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 133385f..e565f49 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. @@ -107,6 +113,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 |