Skip to content

Commit 98dd82c

Browse files
committed
Retry brew commands upon failure
Wrap the installation on macOS with `travis_retry`.
1 parent 5e522d7 commit 98dd82c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.travis.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ matrix:
9696
os: osx
9797
osx_image: xcode7
9898
install:
99-
- brew update && brew install xz
99+
- travis_retry brew update
100+
- travis_retry brew install xz
100101
- *osx_install_sccache
101102
- env: >
102103
RUST_CHECK_TARGET=dist
@@ -109,7 +110,8 @@ matrix:
109110
os: osx
110111
osx_image: xcode7
111112
install:
112-
- brew update && brew install xz
113+
- travis_retry brew update
114+
- travis_retry brew install xz
113115
- *osx_install_sccache
114116
115117
# "alternate" deployments, these are "nightlies" but don't have assertions
@@ -128,7 +130,8 @@ matrix:
128130
os: osx
129131
osx_image: xcode7
130132
install:
131-
- brew update && brew install xz
133+
- travis_retry brew update
134+
- travis_retry brew install xz
132135
- *osx_install_sccache
133136
134137
env:

0 commit comments

Comments
 (0)