Use standard OSX brew bottles to speed up test buildbots

This commit is contained in:
mazmazz 2019-01-05 19:43:37 -05:00
parent e7dc346a10
commit 1e19ba8570

View file

@ -590,18 +590,24 @@ before_install:
install: install:
# Install OS X library dependencies via Homebrew # Install OS X library dependencies via Homebrew
# `brew install --build-bottle` builds libraries for x86_64's lowest common denominator CPU, core2 # Do this differently for release buildbots:
# `sdl2_mixer` requires options from the formula tap https://github.com/mazmazz/homebrew-srb2 # * `brew install --build-bottle` builds libraries for x86_64's lowest common denominator CPU, core2
# `brew postinstall` runs post-install scripts after building a bottle # * `sdl2_mixer` requires options from the formula tap https://github.com/mazmazz/homebrew-srb2
# * `brew postinstall` runs post-install scripts after building a bottle
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update; brew update;
brew tap mazmazz/srb2; brew tap mazmazz/srb2;
fi; fi;
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew install --build-bottle sdl2 game-music-emu zlib p7zip; if [[ "$__DPL_ACTIVE" != "1" ]]; then
brew install --build-bottle mazmazz/srb2/sdl2_mixer --with-flac --with-mpg123; brew install sdl2 sdl2_mixer game-music-emu p7zip;
brew postinstall sdl2 game-music-emu zlib p7zip mazmazz/srb2/sdl2_mixer; brew install cmake||true;
brew install cmake||true; else
brew install --build-bottle sdl2 game-music-emu zlib p7zip;
brew install --build-bottle mazmazz/srb2/sdl2_mixer --with-flac --with-mpg123;
brew postinstall sdl2 game-music-emu zlib p7zip mazmazz/srb2/sdl2_mixer;
brew install cmake||true;
fi;
fi fi
- mkdir -p $HOME/srb2_cache - mkdir -p $HOME/srb2_cache