.travis.yml (view raw)
1if: type = pull_request OR NOT branch =~ /^(master$|optimization)/ OR fork
2language: c
3sudo: required
4services:
5- docker
6os: linux
7env:
8- DOCKER_TAG=ubuntu:xenial
9- DOCKER_TAG=ubuntu:bionic
10- DOCKER_TAG=ubuntu:cosmic
11- DOCKER_TAG=3ds
12- DOCKER_TAG=wii
13- DOCKER_TAG=vita
14- DOCKER_TAG=switch
15- DOCKER_TAG=windows:w32
16- DOCKER_TAG=windows:w64
17
18matrix:
19 include:
20 - os: osx
21 compiler: clang
22 env: DOCKER_TAG=
23
24before_install:
25- '[ -z "$DOCKER_TAG" ] || docker pull mgba/$DOCKER_TAG'
26- '[ "$TRAVIS_OS_NAME" != "osx" ] || . ./.travis-deps.sh'
27- 'mkdir build && chmod 777 build'
28
29script:
30- '[ -z "$DOCKER_TAG" ] || docker run -e BUILD_DIR=build -e MAKEFLAGS=-j2 -v $PWD:/home/mgba/src mgba/$DOCKER_TAG'
31- '[ "$TRAVIS_OS_NAME" != "osx" ] || (cd build && cmake -DCMAKE_PREFIX_PATH="/usr/local/opt/qt5" .. && make -j2)'