Skip to content

Commit 51658f7

Browse files
authored
[2.7] Use Travis to make sure all generated files are up to date (GH-2080) (GH-2094)
(cherry-picked from commit 0afbabe) Also adds `python.exe-gdb.py` to `.gitignore`, it is created by OS X builds.
1 parent 5fe8ac6 commit 51658f7

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pybuilddir.txt
7171
pyconfig.h
7272
python$
7373
python.exe
74-
python-gdb.py
74+
python*-gdb.py
7575
tags
7676
TAGS
7777
.coverage

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,22 @@ matrix:
4747
# Travis provides only 2 cores, so don't overdo the parallelism and waste memory.
4848
before_script:
4949
- |
50+
set -e
5051
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.rst$)|(^Doc)'
5152
then
5253
echo "Only docs were updated, stopping build process."
5354
exit
5455
fi
5556
./configure --with-pydebug
5657
make -j4
58+
make -j4 regen-all
59+
changes=`git status --porcelain`
60+
if ! test -z "$changes"
61+
then
62+
echo "Generated files not up to date"
63+
echo "$changes"
64+
exit 1
65+
fi
5766
5867
script:
5968
# `-r -w` implicitly provided through `make buildbottest`.

0 commit comments

Comments
 (0)