Skip to content

Commit

Permalink
[2.7] Use Travis to make sure all generated files are up to date (GH-…
Browse files Browse the repository at this point in the history
…2080) (GH-2094)

(cherry-picked from commit 0afbabe)

Also adds `python.exe-gdb.py` to `.gitignore`, it is created by OS X builds.
  • Loading branch information
zware committed Jun 11, 2017
1 parent 5fe8ac6 commit 51658f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -71,7 +71,7 @@ pybuilddir.txt
pyconfig.h
python$
python.exe
python-gdb.py
python*-gdb.py
tags
TAGS
.coverage
Expand Down
9 changes: 9 additions & 0 deletions .travis.yml
Expand Up @@ -47,13 +47,22 @@ 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)'
then
echo "Only docs were updated, stopping build process."
exit
fi
./configure --with-pydebug
make -j4
make -j4 regen-all
changes=`git status --porcelain`
if ! test -z "$changes"
then
echo "Generated files not up to date"
echo "$changes"
exit 1
fi
script:
# `-r -w` implicitly provided through `make buildbottest`.
Expand Down

0 comments on commit 51658f7

Please sign in to comment.