mirror of
https://github.com/python/cpython
synced 2024-09-15 21:10:21 +00:00
Use Travis to make sure all generated files are up to date (GH-2080)
This commit is contained in:
parent
503bc6363d
commit
0afbabe245
|
@ -71,6 +71,7 @@ matrix:
|
||||||
# Travis provides only 2 cores, so don't overdo the parallelism and waste memory.
|
# Travis provides only 2 cores, so don't overdo the parallelism and waste memory.
|
||||||
before_script:
|
before_script:
|
||||||
- |
|
- |
|
||||||
|
set -e
|
||||||
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.rst$)|(^Doc)|(^Misc)'
|
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.rst$)|(^Doc)|(^Misc)'
|
||||||
then
|
then
|
||||||
echo "Only docs were updated, stopping build process."
|
echo "Only docs were updated, stopping build process."
|
||||||
|
@ -78,6 +79,12 @@ before_script:
|
||||||
fi
|
fi
|
||||||
./configure --with-pydebug
|
./configure --with-pydebug
|
||||||
make -j4
|
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:
|
script:
|
||||||
# `-r -w` implicitly provided through `make buildbottest`.
|
# `-r -w` implicitly provided through `make buildbottest`.
|
||||||
|
|
Loading…
Reference in a new issue