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

Miss Islington (bot) webhook-mailer at python.org
Tue Jun 16 11:47:24 EDT 2020


https://github.com/python/cpython/commit/071bed842eeff9673bc5c4f64e3916a151132d2a
commit: 071bed842eeff9673bc5c4f64e3916a151132d2a
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-06-16T08:47:16-07: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.
(cherry picked from commit fc710ee266e9461fdba9933ec6004318db588820)

Co-authored-by: Victor Stinner <vstinner at python.org>

files:
M .travis.yml

diff --git a/.travis.yml b/.travis.yml
index 1d3eb737abffa..2b6fed6175265 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



More information about the Python-checkins mailing list