]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40993: Don't run Travis CI coverage on PRs (GH-20916)
authorVictor Stinner <vstinner@python.org>
Tue, 16 Jun 2020 15:27:30 +0000 (17:27 +0200)
committerGitHub <noreply@github.com>
Tue, 16 Jun 2020 15:27:30 +0000 (17:27 +0200)
C and Python coverage jobs of Travis CI are no longer run on pull
requests, only on branches like master.

.travis.yml

index 5d57150e61c186566a1565b810051e68f39f9653..a915f7a46ec3d505c0b11d6bfc537f4b6864f0d1 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.
@@ -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