Skip to content

Commit

Permalink
Use Travis to make sure all generated files are up to date (pythonGH-…
Browse files Browse the repository at this point in the history
  • Loading branch information
zware committed Jun 11, 2017
1 parent 503bc63 commit 0afbabe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,20 @@ 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)|(^Misc)'
then
echo "Only docs were updated, stopping build process."
exit
fi
./configure --with-pydebug
make -j4
make -j4 regen-all clinic
if ! test -z "`git status --porcelain`"
then
echo "Generated files not up to date"
exit 1
fi
script:
# `-r -w` implicitly provided through `make buildbottest`.
Expand Down

0 comments on commit 0afbabe

Please sign in to comment.