Skip to content

Commit

Permalink
try pyenv
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkowl committed Sep 25, 2016
1 parent 5cb65df commit 5a47a70
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -75,6 +85,7 @@ addons:
cache:
directories:
- $HOME/.cache/pip
- $HOME/.pyenv


install:
Expand Down
9 changes: 9 additions & 0 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5a47a70

Please sign in to comment.