Skip to content

Commit e51ad3b

Browse files
ci: Retry brew update a few times to avoid random failures
1 parent b1cb969 commit e51ad3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.cirrus.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ task:
135135
## - rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
136136
##
137137
brew_valgrind_pre_script:
138-
- brew update
138+
# Retry a few times because this tends to fail randomly.
139+
- for i in {1..5}; do brew update && break || sleep 15; done
139140
- brew config
140141
- brew tap LouisBrunner/valgrind
141142
# Fetch valgrind source but don't build it yet.

0 commit comments

Comments
 (0)