]> granicus.if.org Git - jq/commitdiff
Ensure travis has a python version we expect master
authorWilliam Langford <wlangford@digitalocean.com>
Tue, 22 Oct 2019 17:14:33 +0000 (13:14 -0400)
committerWilliam Langford <wlangfor@gmail.com>
Thu, 24 Oct 2019 01:31:05 +0000 (21:31 -0400)
.travis.yml

index 7510a6c13605d1b16f9710e534b8a81b6e8a6780..a1f7f262e029b21c938f4095b6c65f30d4c6d12b 100644 (file)
@@ -28,11 +28,12 @@ jobs:
 
             before_install:
                 - uname -s
+                - pyenv install -s 3.6.7
                 - rm src/{lexer,parser}.{c,h}
                 - sed -i.bak '/^AM_INIT_AUTOMAKE(\[-Wno-portability 1\.14\])$/s/14/11/' modules/oniguruma/configure.ac
 
             install:
-                - pyenv global 3.6
+                - pyenv global 3.6.7
                 - pip3 install pipenv
                 - pushd docs && pipenv sync && popd
                 - wget http://ftp.debian.org/debian/pool/main/b/bison/bison_3.0.2.dfsg-2_amd64.deb
@@ -105,10 +106,13 @@ jobs:
                 - uname -s
                 - brew update
                 - brew install flex bison
+                - brew upgrade pyenv
+                - pyenv install -s 3.6.7
                 - rm src/{lexer,parser}.{c,h}
                 - sed -i.bak '/^AM_INIT_AUTOMAKE(\[-Wno-portability 1\.14\])$/s/14/11/' modules/oniguruma/configure.ac
 
             install:
+                - pyenv global 3.6.7
                 - pip3 install pipenv
                 - pushd docs && pipenv sync && popd
                 - if [ -n "$COVERAGE" ]; then pip install --user cpp-coveralls; fi