summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2017-06-10 21:37:40 -0500
committerGitHub <noreply@github.com>2017-06-10 21:37:40 -0500
commit0afbabe245e2eb6f7cef3b70531d69f2a7ad8295 (patch)
treedc668b6939d8b7aab93281036e8367eb0ed71584 /.travis.yml
parent503bc6363d6486c693248417a26f8c11919c6782 (diff)
downloadcpython-git-0afbabe245e2eb6f7cef3b70531d69f2a7ad8295.tar.gz
Use Travis to make sure all generated files are up to date (GH-2080)
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 778030709a..5f9a38aaa4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -71,6 +71,7 @@ matrix:
# Travis provides only 2 cores, so don't overdo the parallelism and waste memory.
before_script:
- |
+ set -e
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.rst$)|(^Doc)|(^Misc)'
then
echo "Only docs were updated, stopping build process."
@@ -78,6 +79,12 @@ before_script:
fi
./configure --with-pydebug
make -j4
+ make -j4 regen-all clinic
+ if ! test -z "`git status --porcelain`"
+ then
+ echo "Generated files not up to date"
+ exit 1
+ fi
script:
# `-r -w` implicitly provided through `make buildbottest`.