From d1f19060fc8f1cc44eeeb624772bed19d5d8fa7e Mon Sep 17 00:00:00 2001 From: Walter Doekes Date: Wed, 30 Oct 2019 10:21:10 +0100 Subject: [PATCH] Try fixing the Travis OSX build --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.travis.yml b/.travis.yml index 12c49362..893435c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -59,6 +59,18 @@ matrix: before_script: - autoreconf -vifs + # 2019-10-30: Homebrew/brew.rb:23:in `require_relative': ... + # ... unexpected keyword_rescue, expecting keyword_end + # https://discourse.brew.sh/t/missing-file-homebrew-dead/5657 + - if [ "$TRAVIS_OS_NAME" = osx ]; then + set -x && + brew update-reset && + if ! brew install gsl; then + cd "$(brew --repo)" && git add . && git fetch && + git reset --hard origin/master; + fi; + set +x; + fi - if [ "$TRAVIS_OS_NAME" = osx ]; then brew install gsl; fi # 2016-10: Apple doesn't include openssl any more because of security # problems openssl had. Manually specify path to includes/libs.