mirror of
https://github.com/holub/mame
synced 2025-04-16 05:24:54 +03:00
Overhaul travis.yml in an attempt to speed up macos builds (#6988)
This commit is contained in:
parent
1a1af90faa
commit
45e89a40b0
28
.travis.yml
28
.travis.yml
@ -1,9 +1,28 @@
|
|||||||
language: cpp
|
language: cpp
|
||||||
dist: bionic
|
dist: bionic
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
packages:
|
||||||
|
- gcc-10
|
||||||
|
- g++-10
|
||||||
|
- libsdl2-dev
|
||||||
|
- libsdl2-ttf-dev
|
||||||
|
- libasound2-dev
|
||||||
|
- libxinerama-dev
|
||||||
|
- libxi-dev
|
||||||
|
- qt5-default
|
||||||
|
update: true
|
||||||
|
homebrew:
|
||||||
|
packages:
|
||||||
|
- sdl2
|
||||||
|
- sdl2_ttf
|
||||||
|
update: true
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- os: osx
|
- os: osx
|
||||||
osx_image: xcode11.5
|
osx_image: xcode11.6
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env: SUBTARGET=tiny MAME=mametiny64
|
env: SUBTARGET=tiny MAME=mametiny64
|
||||||
- os: linux
|
- os: linux
|
||||||
@ -27,13 +46,6 @@ script:
|
|||||||
elif [ $TRAVIS_OS_NAME == 'osx' ]; then
|
elif [ $TRAVIS_OS_NAME == 'osx' ]; then
|
||||||
unset LDOPTS && make -j2 OPTIMIZE=0 USE_LIBSDL=1 TOOLS=1 && ./$MAME -validate;
|
unset LDOPTS && make -j2 OPTIMIZE=0 USE_LIBSDL=1 TOOLS=1 && ./$MAME -validate;
|
||||||
fi
|
fi
|
||||||
sudo: required
|
|
||||||
before_install:
|
|
||||||
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -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 gcc-10 g++-10 libsdl2-dev libsdl2-ttf-dev libasound2-dev libxinerama-dev libxi-dev qt5-default; 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
|
||||||
|
Loading…
Reference in New Issue
Block a user