Skip to content

Commit

Permalink
Unbreak macOS build on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
elprans committed May 1, 2018
1 parent 4d966a1 commit cc6a62c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .ci/travis-before-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
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
pyenv install ${PYTHON_VERSION}
fi

pyenv global ${PYTHON_VERSION}
pyenv rehash
fi
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ matrix:
services: [docker]

- os: osx
env: BUILD=tests,wheels PYTHON_VERSION=3.5.4 PIP_USER=1
env: BUILD=tests,wheels PYTHON_VERSION=3.5.5

- os: osx
osx_image: xcode8.3
env: BUILD=tests,wheels PYTHON_VERSION=3.6.4 PIP_USER=1
env: BUILD=tests,wheels PYTHON_VERSION=3.6.5

allow_failures:
- python: "3.7-dev"
Expand Down

0 comments on commit cc6a62c

Please sign in to comment.