From 51658f7f9dc6b78db3d9b935ea324e7775114f83 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Sun, 11 Jun 2017 17:45:40 -0500 Subject: [2.7] Use Travis to make sure all generated files are up to date (GH-2080) (GH-2094) (cherry-picked from commit 0afbabe245e2eb6f7cef3b70531d69f2a7ad8295) Also adds `python.exe-gdb.py` to `.gitignore`, it is created by OS X builds. --- .gitignore | 2 +- .travis.yml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7c7389e..cf5db76 100644 --- a/.gitignore +++ b/.gitignore @@ -71,7 +71,7 @@ pybuilddir.txt pyconfig.h python$ python.exe -python-gdb.py +python*-gdb.py tags TAGS .coverage diff --git a/.travis.yml b/.travis.yml index 996566f..929cf64 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,6 +47,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)' then echo "Only docs were updated, stopping build process." @@ -54,6 +55,14 @@ before_script: fi ./configure --with-pydebug make -j4 + make -j4 regen-all + changes=`git status --porcelain` + if ! test -z "$changes" + then + echo "Generated files not up to date" + echo "$changes" + exit 1 + fi script: # `-r -w` implicitly provided through `make buildbottest`. -- cgit v0.12