Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Homebrew: Update logic for removal of c++ if installed on the sys. #5

Merged
merged 3 commits into from
Dec 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .ci/travis/setup-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ if [[ $TRAVIS_OS_NAME == 'linux' ]]; then

elif [[ $TRAVIS_OS_NAME == 'osx' ]]; then

# Homebrew fails during "brew link" if c++ is already present.
if command -v /usr/local/include/c++; then rm '/usr/local/include/c++'; fi
# If c++ is already present on the system, homebrew fails to install gcc.
# Use the `-f` flag in case c++ is not present to avoid errors.
rm -f /usr/local/include/c++

brew update
brew install gcc netcdf jasper
Expand Down