Skip to content

Commit d532fdb

Browse files
committed
[3.5] Use Travis to make sure all generated files are up to date (pythonGH-2080)
(cherry picked from commit 0afbabe)
1 parent ea8b348 commit d532fdb

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
@@ -70,13 +70,20 @@ matrix:
7070
# Travis provides only 2 cores, so don't overdo the parallelism and waste memory.
7171
before_script:
7272
- |
73+
set -e
7374
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.rst$)|(^Doc)|(^Misc)'
7475
then
7576
echo "Only docs were updated, stopping build process."
7677
exit
7778
fi
7879
./configure --with-pydebug
7980
make -j4
81+
make -j4 regen-all clinic
82+
if ! test -z "`git status --porcelain`"
83+
then
84+
echo "Generated files not up to date"
85+
exit 1
86+
fi
8087
8188
script:
8289
# `-r -w` implicitly provided through `make buildbottest`.

0 commit comments

Comments
 (0)