Skip to content

Commit 3cf8094

Browse files
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 fc710ee) Co-authored-by: Victor Stinner <[email protected]>
1 parent 097b8b6 commit 3cf8094

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ matrix:
8282
packages:
8383
- xvfb
8484
before_script:
85+
- |
86+
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]
87+
then
88+
echo "Don't run Python coverage on pull requests."
89+
exit
90+
fi
8591
- ./configure
8692
- make -j4
8793
# Need a venv that can parse covered code.
@@ -107,6 +113,12 @@ matrix:
107113
- lcov
108114
- xvfb
109115
before_script:
116+
- |
117+
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]
118+
then
119+
echo "Don't run C coverage on pull requests."
120+
exit
121+
fi
110122
- ./configure
111123
script:
112124
- xvfb-run make -j4 coverage-report

0 commit comments

Comments
 (0)