Skip to content
Permalink
Browse files

Use travis brew addon to install packages

  • Loading branch information
xycaleth committed Nov 23, 2019
1 parent 8f1827a commit e4f967c10a40c05209b9bbfac4895065e14a9d81
Showing with 10 additions and 8 deletions.
  1. +10 −1 .travis.yml
  2. +0 −7 scripts/travis/install.sh
@@ -2,7 +2,15 @@ language: cpp
sudo: required
dist: trusty

install: ./scripts/travis/install.sh "${host:-native}" $opts
addons:
homebrew:
update: true
packages:
- libpng
- sdl2

install:
- if [[ "${TRAVIS_OS_NAME}" != "osx" ]]; then ./scripts/travis/install.sh "${host:-native}" $opts; fi
script: ./scripts/travis/build.sh "${host:-native}" "${flavour:-Release}" $opts

matrix:
@@ -13,6 +21,7 @@ matrix:

# macOS
- os: osx
osx_image: xcode9.4
compiler: clang

# Linux x64 Debug
@@ -6,13 +6,6 @@ set -x
host="$1"
shift 1

# macOS is special
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
brew upgrade
brew install --verbose libpng sdl2
exit 0
fi

sudo apt-get update -yq

# This is what Travis does using the apt-addon. Didn't want to duplicate a load

0 comments on commit e4f967c

Please sign in to comment.
You can’t perform that action at this time.