.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:disco
11- DOCKER_TAG=ubuntu:eoan
12- DOCKER_TAG=3ds
13- DOCKER_TAG=wii
14- DOCKER_TAG=vita
15- DOCKER_TAG=switch
16- DOCKER_TAG=windows:w32
17- DOCKER_TAG=windows:w64
18
19matrix:
20 include:
21 - os: osx
22 compiler: clang
23 env: DOCKER_TAG=
24
25before_install:
26- '[ -z "$DOCKER_TAG" ] || docker pull mgba/$DOCKER_TAG'
27- '[ "$TRAVIS_OS_NAME" != "osx" ] || . ./.travis-deps.sh'
28- 'mkdir build && chmod 777 build'
29
30script:
31- '[ -z "$DOCKER_TAG" ] || docker run -e BUILD_DIR=build -e MAKEFLAGS=-j2 -v $PWD:/home/mgba/src mgba/$DOCKER_TAG'
32- '[ "$TRAVIS_OS_NAME" != "osx" ] || (cd build && cmake -DCMAKE_PREFIX_PATH="/usr/local/opt/qt5" .. && make -j2)'