From 0809d07e3d3b233269faf01c64797b2904ac5559 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Sat, 10 Jun 2017 21:37:40 -0500 Subject: [PATCH 1/2] Use Travis to make sure all generated files are up to date (GH-2080) --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index 996566fdfde1ff..929cf647020dfb 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`. From e0538b56d45de2a6358ddb2f9142ece058f33585 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Sun, 11 Jun 2017 14:33:44 -0500 Subject: [PATCH 2/2] Ignore python.exe-gdb.py --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7c7389e67b5123..cf5db7681f3512 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