From: Zachary Ware Date: Sun, 11 Jun 2017 22:45:40 +0000 (-0500) Subject: [2.7] Use Travis to make sure all generated files are up to date (GH-2080) (GH-2094) X-Git-Tag: v2.7.14rc1~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51658f7f9dc6b78db3d9b935ea324e7775114f83;p=python [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. --- diff --git a/.gitignore b/.gitignore index 7c7389e67b..cf5db7681f 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 996566fdfd..929cf64702 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`.