From 9e991f651c497cfe5bd780e25a6ef74703f78a8f Mon Sep 17 00:00:00 2001 From: Mus Date: Tue, 4 Sep 2018 18:20:40 -0400 Subject: [PATCH] Update before_script in OSX travis to forcibly link gcc (#507) Otherwise we obtain the following linking failure: Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink include/c++ Target /usr/local/include/c++ already exists. You may want to remove it: rm '/usr/local/include/c++' To force the link and overwrite all conflicting files: brew link --overwrite gcc To list all files that would be deleted: brew link --overwrite --dry-run gcc Possible conflicting files are: /usr/local/include/c++ -> /usr/local/Caskroom/oclint/0.13.1,17.4.0/oclint-0.13.1/include/c++ (cherry picked from commit de6863aa5fee0703731fe464eb7a96af3ee8d487) --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 396552e5d..92b204c05 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,5 +12,7 @@ addons: apt: packages: - hdf5-tools +before_script: + - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; brew link --overwrite gcc; brew install hdf5; fi after_success: - if [ $TRAVIS_JULIA_VERSION = "nightly" ]; then julia -e 'cd(Pkg.dir("HDF5")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder()); Codecov.submit(process_folder())'; fi