Ensure travis has a python version we expect

This commit is contained in:
William Langford authored and William Langford committed 2019-10-23 21:31:05 -04:00
1 parent 9b51a0852a
commit bda75c3142
1 file changed
+5 -1
+5 -1
View File
@@ -28,11 +28,12 @@ jobs:
before_install: before_install:
- uname -s - uname -s
- pyenv install -s 3.6.7
- rm src/{lexer,parser}.{c,h} - rm src/{lexer,parser}.{c,h}
- sed -i.bak '/^AM_INIT_AUTOMAKE(\[-Wno-portability 1\.14\])$/s/14/11/' modules/oniguruma/configure.ac - sed -i.bak '/^AM_INIT_AUTOMAKE(\[-Wno-portability 1\.14\])$/s/14/11/' modules/oniguruma/configure.ac
install: install:
- pyenv global 3.6 - pyenv global 3.6.7
- pip3 install pipenv - pip3 install pipenv
- pushd docs && pipenv sync && popd - pushd docs && pipenv sync && popd
- wget http://ftp.debian.org/debian/pool/main/b/bison/bison_3.0.2.dfsg-2_amd64.deb - 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 - uname -s
- brew update - brew update
- brew install flex bison - brew install flex bison
- brew upgrade pyenv
- pyenv install -s 3.6.7
- rm src/{lexer,parser}.{c,h} - rm src/{lexer,parser}.{c,h}
- sed -i.bak '/^AM_INIT_AUTOMAKE(\[-Wno-portability 1\.14\])$/s/14/11/' modules/oniguruma/configure.ac - sed -i.bak '/^AM_INIT_AUTOMAKE(\[-Wno-portability 1\.14\])$/s/14/11/' modules/oniguruma/configure.ac
install: install:
- pyenv global 3.6.7
- pip3 install pipenv - pip3 install pipenv
- pushd docs && pipenv sync && popd - pushd docs && pipenv sync && popd
- if [ -n "$COVERAGE" ]; then pip install --user cpp-coveralls; fi - if [ -n "$COVERAGE" ]; then pip install --user cpp-coveralls; fi