mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-06 13:44:13 +00:00
Merge pull request #2229 from CAD97/patch-2
[Travis] Fix python/travis-cargo on macOS
This commit is contained in:
commit
5f50f42368
11
.travis.yml
11
.travis.yml
@ -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:
|
||||
- |
|
||||
|
Loading…
Reference in New Issue
Block a user