ci: speed up Travis-CI osx jobs by upgrading only the packages we need

Change-Id: I624f06b456357235648ff75f5158e6d694be2cb3
This commit is contained in:
Davide Pesavento committed 2017-06-24 14:30:42 -04:00
1 parent dd0e1959bb
commit 1eecc17e16
1 file changed
+11 -2
+11 -2
View File
@@ -7,9 +7,18 @@ source "$JDIR"/util.sh
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