From 7233c96dbea3a9803adb1c20195d99f6fe39b3cf Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Tue, 30 Jul 2019 09:45:15 -0400 Subject: [PATCH] Work around brew update failing --- .travis/script.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis/script.sh b/.travis/script.sh index 872c409..0b6e800 100755 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -59,8 +59,10 @@ elif [ "$TARGET" = "Windows" ]; then mkdir artifacts cp -a build/*.zip artifacts elif [ "$TARGET" = "macOS" ]; then - # updating fails sometimes, unable to fetch data off homebrew GitHub repo, so retry a few times - brew update || brew update || brew update || brew update || brew update + # updating fails sometimes, unable to fetch data off homebrew GitHub repo, so keep retrying + until brew update; do + sleep 30 + done brew install p7zip mkdir -p tmp/tmp cd tmp/tmp