diff --git a/travis/osx/before_install.sh b/travis/osx/before_install.sh index fd861e8d9..5d57973ed 100755 --- a/travis/osx/before_install.sh +++ b/travis/osx/before_install.sh @@ -19,6 +19,9 @@ rm -rf '/usr/local/include/c++' ## brew install --HEAD travis/libkml.rb sudo chmod -R +w /usr/local +brew update +brew install bison@2.7 + # GSL - install from source due to homebrew issues curl -k -O https://ftp.gnu.org/gnu/gsl/gsl-2.6.tar.gz tar xf gsl-2.6.tar.gz diff --git a/travis/osx/before_script.sh b/travis/osx/before_script.sh index 809f73711..8c4dd5a4d 100755 --- a/travis/osx/before_script.sh +++ b/travis/osx/before_script.sh @@ -24,6 +24,8 @@ cd .. cp qwt/qwtconfig.pri.in qwt/qwtconfig.pri cp src/gcconfig.pri.in src/gcconfig.pri +# Bison +echo QMAKE_YACC=/usr/local/opt/bison@2.7/bin/bison >> src/gcconfig.pri # Define GC version string, only for tagged builds if [ -n "$TRAVIS_TAG" ]; then echo DEFINES += GC_VERSION=VERSION_STRING >> src/gcconfig.pri; fi sed -i "" "s|#\(CONFIG += release.*\)|\1 static |" src/gcconfig.pri