Merge pull request #4854 from ThomasWaldmann/fix-travis-macOS

travis: python upgrades
This commit is contained in:
TW 2019-11-27 00:27:39 +01:00 committed by GitHub
commit 21bbac79ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 26 deletions

View file

@ -27,10 +27,10 @@ matrix:
os: linux
dist: xenial
env: TOXENV=py37
- language: generic
os: osx
osx_image: xcode8.3
env: TOXENV=py34
- python: 3.8
os: linux
dist: xenial
env: TOXENV=py38
- language: generic
os: osx
osx_image: xcode8.3
@ -38,7 +38,7 @@ matrix:
- language: generic
os: osx
osx_image: xcode8.3
env: TOXENV=py36
env: TOXENV=py37
before_install:
- |

View file

@ -4,38 +4,36 @@ set -e
set -x
if [[ "$(uname -s)" == 'Darwin' ]]; then
# HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_LOGS=~/brew-logs
export HOMEBREW_TEMP=~/brew-temp
mkdir $HOMEBREW_LOGS
mkdir $HOMEBREW_TEMP
# brew update
if [[ "${OPENSSL}" != "0.9.8" ]]; then
brew outdated openssl || brew upgrade openssl
fi
brew update > /dev/null
brew cleanup > /dev/null # do this here, so it won't automatically trigger in the middle of other stuff
brew outdated pkg-config || brew upgrade pkg-config
# do NOT update openssl 1.0.x, brew will also update a lot of dependent pkgs (and their dependencies) then!
#brew outdated openssl || brew upgrade openssl
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig:$PKG_CONFIG_PATH"
brew install readline
export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig:$PKG_CONFIG_PATH"
brew install lz4
brew install xz # required for python lzma module
brew install Caskroom/cask/osxfuse
brew outdated pyenv || brew upgrade pyenv
if which pyenv > /dev/null; then
eval "$(pyenv init -)"
fi
brew install lz4
brew install xz # required for python lzma module
brew outdated pyenv || brew upgrade pyenv
brew install pkg-config
brew install Caskroom/cask/osxfuse
case "${TOXENV}" in
py34)
pyenv install 3.4.5
pyenv global 3.4.5
;;
py35)
pyenv install 3.5.2
pyenv global 3.5.2
pyenv install 3.5.3 # minimum for openssl 1.1.x
pyenv global 3.5.3
;;
py36)
pyenv install 3.6.0
pyenv global 3.6.0
py37)
pyenv install 3.7.0
pyenv global 3.7.0
;;
esac
pyenv rehash

View file

@ -2,7 +2,7 @@
# fakeroot -u tox --recreate
[tox]
envlist = py{34,35,36,37},flake8
envlist = py{34,35,36,37,38},flake8
[testenv]
deps =