Skip to content

Commit 0809d07

Browse files
committed
Use Travis to make sure all generated files are up to date (pythonGH-2080)
1 parent 5fe8ac6 commit 0809d07

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.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)