]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-36307: Travis: upgrade to Xenial environment (GH-12356)
authorInada Naoki <songofacandy@gmail.com>
Tue, 19 Mar 2019 08:30:58 +0000 (17:30 +0900)
committerGitHub <noreply@github.com>
Tue, 19 Mar 2019 08:30:58 +0000 (17:30 +0900)
(cherry picked from commit 74ae50e53e59bbe39d6287b902757f0cd01327dc)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
.travis.yml

index f44cc741ef461918f4df6203aaf2fe01498e9047..07d26412333c1303ecd9501a87625491474c867b 100644 (file)
@@ -1,6 +1,5 @@
 language: c
-dist: trusty
-sudo: false
+dist: xenial
 group: beta
 
 # To cache doc-building dependencies and C compiler output.
@@ -21,6 +20,8 @@ env:
     # Set rpath with env var instead of -Wl,-rpath linker flag
     # OpenSSL ignores LDFLAGS when linking bin/openssl
     - LD_RUN_PATH="${OPENSSL_DIR}/lib"
+    # python3.x in PATH may be pyenv shims, not real python.
+    - PYTHON_FOR_REGEN=python3
 
 branches:
   only:
@@ -82,6 +83,7 @@ matrix:
 
 before_install:
   - set -e
+  - pyenv global 3.7.1  # If this fails, try pyenv versions
   - |
       # Check short-circuit conditions
       if [ "${TESTING}" != "docs" ]