From e52ef501bbcefe7d90bc760ef829211aefeb9fc3 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Tue, 11 Jul 2017 17:12:44 -0400 Subject: [PATCH] chore: avoid brew taking a long time on macOS Travis builds (#1583) - Homebrew now auto-updates before performing any installation, which can take quite some time. We can disable this by enabling HOMEBREW_NO_AUTO_UPDATE - We can pass the --force-bottle option to `brew install` to force it to download pre-compiled binaries, and don't attempt any compilations See: https://github.com/resin-io/etcher/pull/1582 Change-Type: patch Signed-off-by: Juan Cruz Viotti --- .travis.yml | 1 + scripts/ci/install.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 47312551..30783e37 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,6 +31,7 @@ env: - CCACHE_COMPRESS=1 - CC="clang" - CXX="clang++" + - HOMEBREW_NO_AUTO_UPDATE=1 matrix: - TARGET_ARCH=x64 - TARGET_ARCH=x86 diff --git a/scripts/ci/install.sh b/scripts/ci/install.sh index baaa1136..2412722d 100755 --- a/scripts/ci/install.sh +++ b/scripts/ci/install.sh @@ -52,7 +52,7 @@ if [ "$ARGV_OPERATING_SYSTEM" == "linux" ]; then else if [ "$ARGV_OPERATING_SYSTEM" == "darwin" ]; then ./scripts/build/check-dependency.sh brew - brew install ccache jq + brew install ccache jq --force-bottle elif [ "$ARGV_OPERATING_SYSTEM" == "win32" ]; then ./scripts/build/check-dependency.sh choco choco install jq