]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40993: Don't run Travis CI coverage on PRs (GH-20916)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 16 Jun 2020 15:47:16 +0000 (08:47 -0700)
committerGitHub <noreply@github.com>
Tue, 16 Jun 2020 15:47:16 +0000 (08:47 -0700)
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>
.travis.yml

index 1d3eb737abffab4a238ad8e03d1ccce9f388e51d..2b6fed617526590e48c56411534e61a75b8d432f 100644 (file)
@@ -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