summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2018-09-02 20:23:22 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2018-09-03 07:27:21 -0700
commite58c6e1b738bd65f8cab1c1903772a35ceddddb0 (patch)
tree189676c1cdb8a528b43ce0e75eee9f853de7d409
parent4920f1cff14b5a5f0224e2307745eabf2be77ec4 (diff)
downloadspack-e58c6e1b738bd65f8cab1c1903772a35ceddddb0.tar.gz
spack-e58c6e1b738bd65f8cab1c1903772a35ceddddb0.tar.bz2
spack-e58c6e1b738bd65f8cab1c1903772a35ceddddb0.tar.xz
spack-e58c6e1b738bd65f8cab1c1903772a35ceddddb0.zip
travis: fix macOS builds, avoid brew autoupdate
-rw-r--r--.travis.yml19
1 files changed, 12 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml
index 2c5889c324..d5242f5ca9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -142,13 +142,18 @@ cache:
# Work around Travis's lack of support for Python on OSX
before_install:
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions python > /dev/null || brew install python; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then rm /usr/local/include/c++ ; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions gcc > /dev/null || brew install gcc; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions gnupg2 > /dev/null || brew install gnupg2; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then virtualenv venv; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source venv/bin/activate; fi
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
+ brew update;
+ export HOMEBREW_NO_AUTO_UPDATE=1;
+ rm /usr/local/include/c++ ;
+ brew ls --versions gcc > /dev/null || brew install gcc;
+ brew ls --versions gnupg2 > /dev/null || brew install gnupg2;
+ brew install python@2;
+ pip2 install --upgrade pip;
+ pip2 install virtualenv;
+ virtualenv venv;
+ source venv/bin/activate;
+ fi
# Install various dependencies
install: