From 4e75ece8b76a79437d7ab9b049644ca93f7339c5 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Wed, 7 Oct 2020 13:48:57 +0200 Subject: [PATCH] Fix brew install on macOS fail when upgrade is available brew install fails when there is an upgrade available, so run brew upgrade when this happens. --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e16a74869..54dab4f63 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -273,8 +273,8 @@ ubuntu20-04-build: macos-autotools-build: <<: *macos_build_definition before_script: - - brew install autogen - - brew install bison + - brew install autogen || brew upgrade autogen + - brew install bison || brew upgrade bison - export PATH="/usr/local/opt/bison/bin:$PATH" - export build_system="autotools" - python3 gen_version.py > VERSION # FIXME: remove when building from portable source @@ -294,8 +294,8 @@ ubuntu18-04-cmake-build: macos-cmake-build: <<: *macos_build_definition before_script: - - brew install cmake - - brew install bison + - brew install cmake || brew upgrade cmake + - brew install bison || brew upgrade bison - export PATH="/usr/local/opt/bison/bin:$PATH" - export build_system="cmake" - python3 gen_version.py > VERSION -- 2.40.0