Skip to content
Browse files Cache common hosts in /etc/hosts

This may help work around the intermittent Travis CI DNS outages.

  • Loading branch information
ryandesign committed Jun 29, 2020
1 parent e654601 commit ad4012140f2632b39492994aad5ab55983dc7d50
Showing with 5 additions and 0 deletions.
  1. +5 −0 _ci/
@@ -5,6 +5,11 @@ set -e
brew --version
/usr/bin/sudo /usr/bin/find /usr/local -mindepth 2 -delete && hash -r

# Guard against intermittent Travis CI DNS outages
for host in; do
dig +short "$host" | sed -n '$s/$/ '"$host/p" | sudo tee -a /etc/hosts

# Download and install MacPorts built by
OS_MAJOR=$(uname -r | cut -f 1 -d .)
curl -fsSLO "${OS_MAJOR}.tar.bz2"

0 comments on commit ad40121

Please sign in to comment.
You can’t perform that action at this time.