ci: speed up Travis-CI osx jobs by upgrading only the packages we need
Change-Id: I624f06b456357235648ff75f5158e6d694be2cb3
diff --git a/.jenkins.d/00-deps.sh b/.jenkins.d/00-deps.sh
index 6146177..eb4e968 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