summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelsid <elsid.mail@gmail.com>2021-04-24 16:56:44 +0200
committerelsid <elsid.mail@gmail.com>2021-04-24 16:58:09 +0200
commit10f69f003adc1ed0f6461425db319faa450966d6 (patch)
tree43b89a672b93c1222340ac6d044f2c870eefc19b
parent0665c5aa0fc03ab039e21b70ade17c2cd4a0e54a (diff)
Try to fix brew update on gitlabxcode_versions
-rwxr-xr-xCI/before_install.osx.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/CI/before_install.osx.sh b/CI/before_install.osx.sh
index 7acbfbcebd..6258d9681e 100755
--- a/CI/before_install.osx.sh
+++ b/CI/before_install.osx.sh
@@ -7,6 +7,11 @@ if [[ "${TRAVIS}" ]]; then
HOMEBREW_NO_AUTO_UPDATE=1 brew uninstall --ignore-dependencies qt@6 || true
fi
+if [[ "${GITLAB_CI}" ]]; then
+ brew update-reset
+ brew update
+fi
+
# Some of these tools can come from places other than brew, so check before installing
command -v ccache >/dev/null 2>&1 || brew install ccache
command -v cmake >/dev/null 2>&1 || brew install cmake