Merge pull request #2229 from CAD97/patch-2

[Travis] Fix python/travis-cargo on macOS
This commit is contained in:
Nick Cameron 2017-12-08 17:28:01 +13:00 committed by GitHub
commit 5f50f42368
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,8 +20,15 @@ addons:
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:/usr/local/bin:$PATH
if [ $TRAVIS_OS_NAME = 'osx' ]; then
brew install python3 &&
virtualenv env -p python3 &&
source env/bin/activate &&
pip install 'travis-cargo<0.2'
else
pip install 'travis-cargo<0.2' --user &&
export PATH="$(python -m site --user-base)/bin:$PATH"
fi
script:
- |