From 0afbabe245e2eb6f7cef3b70531d69f2a7ad8295 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Sat, 10 Jun 2017 21:37:40 -0500 Subject: Use Travis to make sure all generated files are up to date (GH-2080) --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 7780307..5f9a38a 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`. -- cgit v0.12