aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2019-01-09 17:01:07 -0800
committerGravatar Alexander Polcyn <apolcyn@google.com>2019-01-09 17:01:07 -0800
commit38f0fa394b1d75772a37aac2829a51a037d3271f (patch)
tree193b5878b66a3cca293dd39444f9f3836ade1f6a
parent26dddbb10dfc74db458d975f42346a9d677ca5ed (diff)
Attempt to fix homebrew installation problem
-rw-r--r--tools/internal_ci/helper_scripts/prepare_build_macos_rc2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/internal_ci/helper_scripts/prepare_build_macos_rc b/tools/internal_ci/helper_scripts/prepare_build_macos_rc
index 632db5ae14..5b6b256939 100644
--- a/tools/internal_ci/helper_scripts/prepare_build_macos_rc
+++ b/tools/internal_ci/helper_scripts/prepare_build_macos_rc
@@ -38,6 +38,8 @@ if [ -n "$KOKORO_GITHUB_PULL_REQUEST_NUMBER" ]; then
fi
set +ex # rvm script is very verbose and exits with errorcode
+# Advice from https://github.com/Homebrew/homebrew-cask/issues/8629#issuecomment-68641176
+brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup
source $HOME/.rvm/scripts/rvm
set -e # rvm commands are very verbose
time rvm install 2.5.0