Skip to content

Commit 071bed8

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 e63cc2f commit 071bed8

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.
@@ -106,6 +112,12 @@ matrix:
106112
- lcov
107113
- xvfb
108114
before_script:
115+
- |
116+
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]
117+
then
118+
echo "Don't run C coverage on pull requests."
119+
exit
120+
fi
109121
- ./configure
110122
script:
111123
- xvfb-run make -j4 coverage-report

0 commit comments

Comments
 (0)