travis: retry `brew install`, it randomly fails on downloads

$ brew tap adoptopenjdk/openjdk
Updating Homebrew...
==> Tapping adoptopenjdk/openjdk
Cloning into '/usr/local/Homebrew/Library/Taps/adoptopenjdk/homebrew-openjdk'...
fatal: unable to access 'https://github.com/adoptopenjdk/homebrew-openjdk/': Could not resolve host: github.com
Error: Failure while executing; `git clone https://github.com/adoptopenjdk/homebrew-openjdk /usr/local/Homebrew/Library/Taps/adoptopenjdk/homebrew-openjdk --depth=1` exited with 128.
The command "brew tap adoptopenjdk/openjdk" failed and exited with 1 during .
This commit is contained in:
Hans-Christoph Steiner 2019-09-23 11:31:14 +02:00
parent 0da93f9a7d
commit 7142a3b89f
No known key found for this signature in database
GPG Key ID: 3E177817BA1B9BFA
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,8 @@ install:
- brew uninstall java --force || true - brew uninstall java --force || true
- brew cask uninstall java --force || true - brew cask uninstall java --force || true
- brew tap adoptopenjdk/openjdk - brew tap adoptopenjdk/openjdk
- brew cask install adoptopenjdk8 - travis_retry brew cask install adoptopenjdk8
- brew cask install android-sdk - travis_retry brew cask install android-sdk
- export AAPT_VERSION=`sed -n "s,^MINIMUM_AAPT_VERSION\s*=\s*['\"]\(.*\)[['\"],\1,p" fdroidserver/common.py` - export AAPT_VERSION=`sed -n "s,^MINIMUM_AAPT_VERSION\s*=\s*['\"]\(.*\)[['\"],\1,p" fdroidserver/common.py`
- mkdir -p "$ANDROID_HOME/licenses" - mkdir -p "$ANDROID_HOME/licenses"