From 5a47a708bf164af88ff25f2eb86351182bc221de Mon Sep 17 00:00:00 2001 From: "Amber Brown (HawkOwl)" Date: Sun, 25 Sep 2016 17:23:04 +0800 Subject: [PATCH] try pyenv --- .travis.yml | 13 ++++++++++++- .travis/install.sh | 9 +++++++++ tox.ini | 6 +++--- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 10843776726..7b949583253 100644 --- a/.travis.yml +++ b/.travis.yml @@ -55,7 +55,17 @@ matrix: # see: https://docs.travis-ci.com/user/languages/objective-c/#Supported-OS-X-iOS-SDK-versions osx_image: xcode7.1 python: 2.7 - env: TOXENV=py27-alldeps-withcov-posix,codecov-publish + env: TOXENV=py27-alldeps-withcov-macos1010,codecov-publish + # + # OSX 10.11 + # + - language: generic + os: osx + # 8 is OS X 10.11.x + # see: https://docs.travis-ci.com/user/languages/objective-c/#Supported-OS-X-iOS-SDK-versions + osx_image: xcode8 + env: TOXENV=py35-alldeps-withcov-macos,codecov-publish + allow_failures: # For now, OSX run on Travis-CI has a few failures. @@ -75,6 +85,7 @@ addons: cache: directories: - $HOME/.cache/pip + - $HOME/.pyenv install: diff --git a/.travis/install.sh b/.travis/install.sh index 0376ccadea2..97ce515f375 100755 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -8,6 +8,15 @@ if [[ "$(uname -s)" == 'Darwin' ]]; then python -m pip install --user virtualenv python -m virtualenv ~/.venv source ~/.venv/bin/activate + + if [[ "${TOXENV}" == "py35-alldeps-withcov-macos,codecov-publish" ]]; then + + brew upgrade; + brew install pyenv; + pyenv install -s 3.5.2; + pyenv global system 3.5.2; + + elif fi # Temporary workaround for https://github.com/pypa/setuptools/issues/776; diff --git a/tox.ini b/tox.ini index 58891c19305..ee5708b3c45 100644 --- a/tox.ini +++ b/tox.ini @@ -61,9 +61,9 @@ deps = {alldeps,tests}-macos: pyobjc-core {alldeps,tests}-macos: pyobjc-framework-cfnetwork - {alldeps,tests}-macos1010: pyobjc-core==3.1.1 - {alldeps,tests}-macos1010: pyobjc-framework-cfnetwork==3.1.1 - {alldeps,tests}-macos1010: pyobjc-framework-Cocoa==3.1.1 + {alldeps,tests}-macos1010: pyobjc-core==3.0.4 + {alldeps,tests}-macos1010: pyobjc-framework-cfnetwork==3.0.4 + {alldeps,tests}-macos1010: pyobjc-framework-Cocoa==3.0.4 {withcov,coverage}: coverage