Do not fail if brew has an updated version of a package we already cached

This commit is contained in:
Alessandro Ranellucci 2018-11-09 10:10:15 +01:00
parent 7739cae3f3
commit 3f155825e1
2 changed files with 6 additions and 3 deletions

View File

@ -8,7 +8,7 @@ mkdir -p $CACHE
( sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok )&
brew update -v
brew install ccache
brew upgrade ccache || brew install ccache
if [[ "$WXVERSION" != "pkg" ]]; then
WXVER_EXPANDED=${WXVERSION:0:1}.${WXVERSION:1:1}.${WXVERSION:2:1}
@ -26,7 +26,7 @@ if [[ "$WXVERSION" != "pkg" ]]; then
export PATH=${PATH}:${WXDIR}
cd $TRAVIS_BUILD_DIR # go back to the build dir
else
brew install wxmac # install via homebrew
brew upgrade wxmac || brew install wxmac # install via homebrew
fi
mkdir build && cd build

View File

@ -2,7 +2,10 @@
set -euo pipefail
brew update -v
brew install boost perl cpanminus wxwidgets
brew upgrade boost || brew install boost
brew upgrade perl || brew install perl
brew upgrade cpanminus || brew install cpanminus
brew upgrade wxwidgets || brew install wxwidgets
brew link --overwrite perl cpanminus
export SLIC3R_STATIC=1