Skip to content

Commit 0afbabe

Browse files
authored
Use Travis to make sure all generated files are up to date (GH-2080)
1 parent 503bc63 commit 0afbabe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,20 @@ matrix:
7171
# Travis provides only 2 cores, so don't overdo the parallelism and waste memory.
7272
before_script:
7373
- |
74+
set -e
7475
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.rst$)|(^Doc)|(^Misc)'
7576
then
7677
echo "Only docs were updated, stopping build process."
7778
exit
7879
fi
7980
./configure --with-pydebug
8081
make -j4
82+
make -j4 regen-all clinic
83+
if ! test -z "`git status --porcelain`"
84+
then
85+
echo "Generated files not up to date"
86+
exit 1
87+
fi
8188
8289
script:
8390
# `-r -w` implicitly provided through `make buildbottest`.

0 commit comments

Comments
 (0)