Travis OS X testing

This commit is contained in:
balr0g 2015-09-18 12:46:29 -04:00
parent 6b79dc2275
commit 9d78d37074

View file

@ -2,6 +2,9 @@ language: cpp
compiler:
- gcc
- clang
os:
- linux
- osx
env:
- SUBTARGET=arcade MAME=mamearcade64 LDOPTS="-Wl,-no-keep-memory"
- SUBTARGET=mess MAME=mess64
@ -12,10 +15,12 @@ script:
fi
sudo: required
before_install:
- sudo add-apt-repository ppa:zoogie/sdl2-snapshots -y
- sudo add-apt-repository ppa:shahar-evron/qt-backports -y
- sudo apt-get update -qq
- sudo apt-get install -y --force-yes libsdl2-dev libsdl2-ttf-dev libasound2-dev libqt4-dev libqt4-dev-bin
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then sudo add-apt-repository ppa:zoogie/sdl2-snapshots -y; fi"
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then sudo add-apt-repository ppa:shahar-evron/qt-backports -y; fi"
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then sudo apt-get update -qq; fi"
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then sudo apt-get install -y --force-yes libsdl2-dev libsdl2-ttf-dev libasound2-dev libqt4-dev libqt4-dev-bin; fi"
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'osx' ]; then brew update; fi"
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'osx' ]; then brew install sdl2 sdl2_ttf; fi"
branches:
only:
- master