2018-02-18 03:54:22 +01:00
#!/bin/bash
set -e
2019-10-26 02:17:04 +02:00
export HOMEBREW_NO_AUTO_UPDATE = 1
2018-09-27 11:25:56 +02:00
# Install newer GCC if we're running on GCC
if [ " ${ CXX } " = = "g++" ] ; then
2018-09-27 11:23:05 +02:00
# We need to uninstall oclint because it creates a /usr/local/include/c++ symlink that clashes with the gcc5 package
# see https://github.com/Homebrew/homebrew-core/issues/21172
brew cask uninstall oclint
brew install gcc@7
fi
2018-09-27 11:25:56 +02:00
brew cask install osxfuse
brew install libomp
2018-02-18 03:54:22 +01:00
# By default, travis only fetches the newest 50 commits. We need more in case we're further from the last version tag, so the build doesn't fail because it can't generate the version number.
2018-09-28 01:22:58 +02:00
git fetch --unshallow --tags
2018-02-18 03:54:22 +01:00
2019-10-20 03:33:29 +02:00
pip install conan
2018-09-27 11:23:05 +02:00
# Setup ccache
brew install ccache