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: compiler:
- gcc - gcc
- clang - clang
os:
- linux
- osx
env: env:
- SUBTARGET=arcade MAME=mamearcade64 LDOPTS="-Wl,-no-keep-memory" - SUBTARGET=arcade MAME=mamearcade64 LDOPTS="-Wl,-no-keep-memory"
- SUBTARGET=mess MAME=mess64 - SUBTARGET=mess MAME=mess64
@ -12,10 +15,12 @@ script:
fi fi
sudo: required sudo: required
before_install: before_install:
- sudo add-apt-repository ppa:zoogie/sdl2-snapshots -y - "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then sudo add-apt-repository ppa:zoogie/sdl2-snapshots -y; fi"
- sudo add-apt-repository ppa:shahar-evron/qt-backports -y - "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then sudo add-apt-repository ppa:shahar-evron/qt-backports -y; fi"
- sudo apt-get update -qq - "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then sudo apt-get update -qq; fi"
- 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 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: branches:
only: only:
- master - master