summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorBrett Cannon <brettcannon@users.noreply.github.com>2017-06-24 23:51:23 (GMT)
committerGitHub <noreply@github.com>2017-06-24 23:51:23 (GMT)
commit70cb1875bb5343e31d7268f4b2d231a5fecdf989 (patch)
tree99e32d498812ed6b6056024e9fe72c16562e7f65 /.travis.yml
parent13e96cc596d158b98996db3fa291086ea4afecd9 (diff)
downloadcpython-70cb1875bb5343e31d7268f4b2d231a5fecdf989.zip
cpython-70cb1875bb5343e31d7268f4b2d231a5fecdf989.tar.gz
cpython-70cb1875bb5343e31d7268f4b2d231a5fecdf989.tar.bz2
Check the whitespace of pull requests on Travis (GH-2367)
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index d30de21..4be6e4c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -89,6 +89,11 @@ before_script:
fi
script:
+ # Using the built Python as patchcheck.py is built around the idea of using
+ # a checkout-build of CPython to know things like what base branch the changes
+ # should be compared against.
+ # Only run on Linux as the check only needs to be run once.
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./python Tools/scripts/patchcheck.py --travis $TRAVIS_PULL_REQUEST; fi
# `-r -w` implicitly provided through `make buildbottest`.
- make buildbottest TESTOPTS="-j4 -uall,-cpu,-tzdata"