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
|
2019-04-22 19:24:33 +00:00
|
|
|
- DOCKER_TAG=ubuntu:disco
|
2019-09-22 00:54:39 +00:00
|
|
|
- DOCKER_TAG=ubuntu:eoan
|
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
|
|
|
|
|
2020-12-05 08:02:26 +00:00
|
|
|
jobs:
|
2017-03-20 23:01:56 +00:00
|
|
|
include:
|
2018-07-06 03:50:56 +00:00
|
|
|
- os: osx
|
2020-12-05 08:02:26 +00:00
|
|
|
osx_image: xcode12.2
|
2018-07-06 03:50:56 +00:00
|
|
|
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'
|
2019-10-15 02:53:39 +00:00
|
|
|
- '. ./.travis-deps.sh'
|
2018-07-06 03:50:56 +00:00
|
|
|
- '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)'
|