]> granicus.if.org Git - python/commitdiff
bpo-32316: Travis CI: use PYTHON_FOR_REGEN=python3 (#4853)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 13 Dec 2017 23:51:45 +0000 (00:51 +0100)
committerGitHub <noreply@github.com>
Wed, 13 Dec 2017 23:51:45 +0000 (00:51 +0100)
"make regen-all" requires a working python3.6 or python3. Without
"python: 3.6", Travis CI provides a "python3.6" script which ony
write an error.

Use "python3" instead.

.travis.yml

index 031ba792cbbe649c35bda4687e96c0e44dffda65..e624092bba36ad30c74a166d9391ad551d4ab305 100644 (file)
@@ -47,7 +47,8 @@ matrix:
               echo "Only docs were updated, stopping build process."
               exit
             fi
-            ./configure
+            # Build in release mode
+            ./configure PYTHON_FOR_REGEN=python3
             make -s -j4
             # Need a venv that can parse covered code.
             ./python -m venv venv
@@ -70,7 +71,8 @@ before_script:
         echo "Only docs were updated, stopping build process."
         exit
       fi
-      ./configure --with-pydebug
+      # Build in debug mode
+      ./configure --with-pydebug PYTHON_FOR_REGEN=python3
       make -j4
       make -j4 regen-all clinic
       changes=`git status --porcelain`