Commit 51658f7f authored by Zachary Ware's avatar Zachary Ware Committed by GitHub

[2.7] Use Travis to make sure all generated files are up to date (GH-2080) (GH-2094)

(cherry-picked from commit 0afbabe2)

Also adds `python.exe-gdb.py` to `.gitignore`, it is created by OS X builds.
parent 5fe8ac69
......@@ -71,7 +71,7 @@ pybuilddir.txt
pyconfig.h
python$
python.exe
python-gdb.py
python*-gdb.py
tags
TAGS
.coverage
......
......@@ -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`.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment