Browse files

macOS CI: Upgrade Homebrew packages before installing

Travis-CI's macOS worker image currently has libpng installed at a
slightly outdated version. Unlike "apt install", "brew install"
will not upgrade a package that is already installed, and will exit
unsuccessfully when asked to do so. There does not seem to be a
Homebrew command for "upgrade these packages if installed, or install
them if not installed", so the most straightforward way seems to be
to upgrade everything before invoking brew install.

Fixes: #987
  • Loading branch information...
smcv committed Aug 9, 2018
1 parent 9736ae6 commit 8d51abfb72686d6a5ce4e370f0af8a6658a503db
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/travis/
@@ -8,7 +8,8 @@ shift 1
# macOS is special
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
brew install libpng sdl2 --universal
brew upgrade
brew install --universal --verbose libpng sdl2
exit 0

0 comments on commit 8d51abf

Please sign in to comment.