Skip to content
Snippets Groups Projects
Commit e58c6e1b authored by Todd Gamblin's avatar Todd Gamblin
Browse files

travis: fix macOS builds, avoid brew autoupdate

parent 4920f1cf
No related branches found
No related tags found
No related merge requests found
...@@ -142,13 +142,18 @@ cache: ...@@ -142,13 +142,18 @@ cache:
# Work around Travis's lack of support for Python on OSX # Work around Travis's lack of support for Python on OSX
before_install: before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions python > /dev/null || brew install python; fi brew update;
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then rm /usr/local/include/c++ ; fi export HOMEBREW_NO_AUTO_UPDATE=1;
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions gcc > /dev/null || brew install gcc; fi rm /usr/local/include/c++ ;
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions gnupg2 > /dev/null || brew install gnupg2; fi brew ls --versions gcc > /dev/null || brew install gcc;
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then virtualenv venv; fi brew ls --versions gnupg2 > /dev/null || brew install gnupg2;
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source venv/bin/activate; fi brew install python@2;
pip2 install --upgrade pip;
pip2 install virtualenv;
virtualenv venv;
source venv/bin/activate;
fi
# Install various dependencies # Install various dependencies
install: install:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment