diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2017-06-11 17:45:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-11 17:45:40 -0500 |
commit | 51658f7f9dc6b78db3d9b935ea324e7775114f83 (patch) | |
tree | 396f2f08d856d7a8f3fc17fe00d6dc57356c82de /.travis.yml | |
parent | 5fe8ac69f99d58232a5234cfca78f05f7223a782 (diff) | |
download | cpython-git-51658f7f9dc6b78db3d9b935ea324e7775114f83.tar.gz |
[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.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 9 |
1 files changed, 9 insertions, 0 deletions
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`. |