Skip to content

Commit

Permalink
Fix OSX Python tests (#1320)
Browse files Browse the repository at this point in the history
The test was failing because the calculated staging path is incorrect
with brew. If done in a virtualenv it is correct.
  • Loading branch information
robyoung authored and jordansissel committed Apr 21, 2017
1 parent 6dca7ca commit 6f6e59e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -22,8 +22,10 @@ before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which python || brew install python; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which easy_install || echo 'easy_install not found'; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which rpm || brew install rpm ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which virtualenv || pip install --user virtualenv ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then which virtualenv-tools || pip install --user virtualenv virtualenv-tools ; fi
script: PATH=${PATH}:${HOME}/.local/bin bundle exec rspec
- virtualenv ${HOME}/.venv
script: source ${HOME}/.venv/bin/activate && PATH=${PATH}:${HOME}/.local/bin bundle exec rspec
addons:
apt:
packages:
Expand Down

0 comments on commit 6f6e59e

Please sign in to comment.