mirror of
https://github.com/python/cpython.git
synced 2025-09-29 11:45:57 +00:00
[3.6] Use Travis to make sure all generated files are up to date (GH-2080) (GH-2092)
(cherry picked from commit 0afbabe245
)
Also fixes some line endings missed in GH-840 backport.
This commit is contained in:
parent
83d30bd667
commit
f57e34b672
4 changed files with 144 additions and 135 deletions
|
@ -70,6 +70,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."
|
||||||
|
@ -77,6 +78,14 @@ before_script:
|
||||||
fi
|
fi
|
||||||
./configure --with-pydebug
|
./configure --with-pydebug
|
||||||
make -j4
|
make -j4
|
||||||
|
make -j4 regen-all clinic
|
||||||
|
changes=`git status --porcelain`
|
||||||
|
if ! test -z "$changes"
|
||||||
|
then
|
||||||
|
echo "Generated files not up to date"
|
||||||
|
echo "$changes"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# `-r -w` implicitly provided through `make buildbottest`.
|
# `-r -w` implicitly provided through `make buildbottest`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue