Skip to content
Snippets Groups Projects
Commit d65c6ba9 authored by Todd Gamblin's avatar Todd Gamblin Committed by Massimiliano Culpo
Browse files

Use homebrew addon instead of manually invoking brew (#10213)

parent 5f957920
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,7 @@ sudo: false
# Docs need graphviz to build
addons:
# for Linux builds, we use APT
apt:
packages:
- ccache
......@@ -143,6 +144,13 @@ addons:
- r-base-dev
- perl
- perl-base
# for Mac builds, we use Homebrew
homebrew:
packages:
- python@2
- gcc
- gnupg2
- ccache
# ~/.ccache needs to be cached directly as Travis is not taking care of it
# (possibly because we use 'language: python' and not 'language: c')
......@@ -156,13 +164,6 @@ cache:
# Work around Travis's lack of support for Python on OSX
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
export HOMEBREW_NO_AUTO_UPDATE=1;
rm /usr/local/include/c++ ;
brew ls --versions python@2 > /dev/null || brew install python@2;
brew ls --versions gcc > /dev/null || brew install gcc;
brew ls --versions gnupg2 > /dev/null || brew install gnupg2;
brew ls --versions ccache > /dev/null || brew install ccache;
pip2 install --upgrade pip;
pip2 install virtualenv;
virtualenv venv;
......
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