]> granicus.if.org Git - python/commitdiff
Use Travis to make sure all generated files are up to date (GH-2080)
authorZachary Ware <zachary.ware@gmail.com>
Sun, 11 Jun 2017 02:37:40 +0000 (21:37 -0500)
committerGitHub <noreply@github.com>
Sun, 11 Jun 2017 02:37:40 +0000 (21:37 -0500)
.travis.yml

index 778030709acd41ff3ddc10700838b913b8e9cbba..5f9a38aaa482c032d9de07aafc26a4a295243071 100644 (file)
@@ -71,6 +71,7 @@ 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."
@@ -78,6 +79,12 @@ before_script:
       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`.