[Python-checkins] bpo-40993: Don't run Travis CI coverage on PRs (GH-20916)

Victor Stinner webhook-mailer at python.org
Tue Jun 16 11:27:50 EDT 2020


https://github.com/python/cpython/commit/fc710ee266e9461fdba9933ec6004318db588820
commit: fc710ee266e9461fdba9933ec6004318db588820
branch: master
author: Victor Stinner <vstinner at python.org>
committer: GitHub <noreply at github.com>
date: 2020年06月16日T17:27:30+02:00
summary:
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.
files:
M .travis.yml
diff --git a/.travis.yml b/.travis.yml
index 5d57150e61c18..a915f7a46ec3d 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /