2018-07-06 03:50:56 +00:00
|
|
|
if: type = pull_request OR NOT branch =~ /^(master$|optimization)/ OR fork
|
2015-02-14 12:05:44 +00:00
|
|
|
language: c
|
2015-09-21 07:50:27 +00:00
|
|
|
sudo: required
|
2018-07-06 03:50:56 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
os: linux
|
|
|
|
env:
|
|
|
|
- DOCKER_TAG=ubuntu:xenial
|
|
|
|
- DOCKER_TAG=ubuntu:bionic
|
2018-09-29 01:08:31 +00:00
|
|
|
- DOCKER_TAG=ubuntu:cosmic
|
2018-07-06 03:50:56 +00:00
|
|
|
- DOCKER_TAG=3ds
|
|
|
|
- DOCKER_TAG=wii
|
|
|
|
- DOCKER_TAG=vita
|
2018-09-15 22:21:44 +00:00
|
|
|
- DOCKER_TAG=switch
|
2018-07-06 03:50:56 +00:00
|
|
|
- DOCKER_TAG=windows:w32
|
|
|
|
- DOCKER_TAG=windows:w64
|
|
|
|
|
2017-03-20 23:01:56 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2018-07-06 03:50:56 +00:00
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
|
|
|
env: DOCKER_TAG=
|
2015-09-21 07:50:27 +00:00
|
|
|
|
2015-02-14 11:37:00 +00:00
|
|
|
before_install:
|
2018-07-06 03:50:56 +00:00
|
|
|
- '[ -z "$DOCKER_TAG" ] || docker pull mgba/$DOCKER_TAG'
|
|
|
|
- '[ "$TRAVIS_OS_NAME" != "osx" ] || . ./.travis-deps.sh'
|
|
|
|
- 'mkdir build && chmod 777 build'
|
2015-02-14 11:37:00 +00:00
|
|
|
|
2018-07-06 03:50:56 +00:00
|
|
|
script:
|
|
|
|
- '[ -z "$DOCKER_TAG" ] || docker run -e BUILD_DIR=build -e MAKEFLAGS=-j2 -v $PWD:/home/mgba/src mgba/$DOCKER_TAG'
|
|
|
|
- '[ "$TRAVIS_OS_NAME" != "osx" ] || (cd build && cmake -DCMAKE_PREFIX_PATH="/usr/local/opt/qt5" .. && make -j2)'
|