mame/.travis.yml

40 lines
1.3 KiB
YAML
Raw Normal View History

2015-07-10 16:41:08 +02:00
language: cpp
2015-07-10 18:41:35 +02:00
compiler:
- gcc
- clang
2015-09-18 18:46:29 +02:00
os:
- linux
- osx
dist: bionic
osx_image: xcode11
2015-09-18 19:15:07 +02:00
matrix:
exclude:
- os: osx
compiler: gcc
2015-12-11 06:13:37 +01:00
- os: linux
2015-12-11 06:12:09 +01:00
compiler: clang
2015-07-10 16:41:08 +02:00
env:
2016-05-27 18:19:21 +02:00
- SUBTARGET=tiny MAME=mametiny64
2015-07-10 18:41:35 +02:00
script:
2015-09-18 19:24:54 +02:00
- if [ $TRAVIS_OS_NAME == 'linux' ]; then
if [ $CC == 'clang' ]; then
make -j2 IGNORE_GIT=1 OVERRIDE_CXX="clang++-3.6" OVERRIDE_CC="clang-3.6" TOOLS=1 && ./$MAME -validate;
else make -j4 IGNORE_GIT=1 OPTIMIZE=0 OVERRIDE_CC="gcc-9" OVERRIDE_CXX="g++-9" TOOLS=1 && ./$MAME -validate;
2015-07-10 18:41:35 +02:00
fi
2015-09-18 19:24:54 +02:00
elif [ $TRAVIS_OS_NAME == 'osx' ]; then
unset LDOPTS && make -j2 OPTIMIZE=0 USE_LIBSDL=1 TOOLS=1 && ./$MAME -validate;
2015-09-18 19:15:07 +02:00
fi
2015-07-10 16:41:08 +02:00
sudo: required
before_install:
2019-08-25 01:05:29 +02:00
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi"
2015-09-18 18:46:29 +02:00
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then sudo apt-get update -qq; fi"
2019-08-25 01:05:29 +02:00
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then sudo apt-get install -y --force-yes gcc-9 g++-9 libsdl2-dev libsdl2-ttf-dev libasound2-dev libxinerama-dev libxi-dev qt5-default; fi"
2015-09-18 18:46:29 +02:00
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'osx' ]; then brew update; fi"
2016-05-28 13:15:12 +02:00
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'osx' ]; then brew install sdl2 sdl2_ttf; fi"
2015-09-17 13:32:59 +02:00
branches:
only:
- master
2016-05-27 21:00:24 +02:00
notifications:
email: false
2016-06-09 17:08:12 +02:00