summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-06-16 15:27:30 (GMT)
committerGitHub <noreply@github.com>2020-06-16 15:27:30 (GMT)
commitfc710ee266e9461fdba9933ec6004318db588820 (patch)
tree6bbf739bb6f570692621bbeb2391ed4eaefdb037 /.travis.yml
parente0bec69854ff17b1a6db9bc01db8c002761bb7a8 (diff)
downloadcpython-fc710ee266e9461fdba9933ec6004318db588820.zip
cpython-fc710ee266e9461fdba9933ec6004318db588820.tar.gz
cpython-fc710ee266e9461fdba9933ec6004318db588820.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.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 5d57150..a915f7a 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