ci: speed up Travis-CI osx jobs by upgrading only the packages we need
Change-Id: I7d6c427eacb132d5faad5ceb50aa2f1347ef912c
diff --git a/.jenkins.d/00-deps.sh b/.jenkins.d/00-deps.sh
index 468075a..c69f492 100755
--- a/.jenkins.d/00-deps.sh
+++ b/.jenkins.d/00-deps.sh
@@ -7,9 +7,18 @@
set -x
if has OSX $NODE_LABELS; then
+ FORMULAE=(boost pkg-config cryptopp openssl)
brew update
- brew upgrade
- brew install boost pkg-config cryptopp openssl
+ if [[ -n $TRAVIS ]]; then
+ # travis images come with a large number of brew packages
+ # pre-installed, don't waste time upgrading all of them
+ for FORMULA in "${FORMULAE[@]}"; do
+ brew outdated $FORMULA || brew upgrade $FORMULA
+ done
+ else
+ brew upgrade
+ fi
+ brew install "${FORMULAE[@]}"
brew cleanup
fi