]> granicus.if.org Git - graphviz/commitdiff
Fix brew install on macOS fail when upgrade is available
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Wed, 7 Oct 2020 11:48:57 +0000 (13:48 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Wed, 7 Oct 2020 13:10:01 +0000 (15:10 +0200)
brew install fails when there is an upgrade available, so run brew
upgrade when this happens.

.gitlab-ci.yml

index e16a748692d5e7795111af74c41bd297275feba5..54dab4f63dcc61ac0eeef4d3975303ebcdb58d5d 100644 (file)
@@ -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