Unbreak macOS builds on Travis

This commit is contained in:
Elvis Pranskevichus 2018-04-25 13:58:07 -04:00
parent 28d35d9b7f
commit b5aa30b264
No known key found for this signature in database
GPG Key ID: 5036323AA98A9CEC
2 changed files with 5 additions and 9 deletions

View File

@ -3,9 +3,8 @@
set -e -x
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
git clone --depth 1 https://github.com/yyuu/pyenv.git ~/.pyenv
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH"
brew update >/dev/null
brew upgrade pyenv
eval "$(pyenv init -)"
if ! (pyenv versions | grep "${PYTHON_VERSION}$"); then
@ -14,14 +13,11 @@ if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
pyenv global ${PYTHON_VERSION}
pyenv rehash
brew update
brew install gnu-sed --with-default-names
brew outdated libtool || brew upgrade libtool
brew outdated autoconf || brew upgrade autoconf --with-default-names
brew outdated automake || brew upgrade automake --with-default-names
fi
pip install --upgrade pip wheel
pip install --upgrade setuptools
pip install --upgrade setuptools pip wheel
pip install -r .ci/requirements.txt

View File

@ -32,14 +32,14 @@ matrix:
osx_image: xcode7.3
# Travis macOS env does not support Python yet,
# so we have to set things up manually in install.sh.
env: BUILD=tests,wheels PYTHON_VERSION=3.5.4 PIP_USER=1
env: BUILD=tests,wheels PYTHON_VERSION=3.5.5
branches: {only: [releases]}
- os: osx
osx_image: xcode7.3
# Travis macOS env does not support Python yet,
# so we have to set things up manually in install.sh.
env: BUILD=tests,wheels PYTHON_VERSION=3.6.3 PIP_USER=1
env: BUILD=tests,wheels PYTHON_VERSION=3.6.5
branches: {only: [releases]}
- os: linux