mgba/.travis.yml

34 lines
830 B
YAML
Raw Normal View History

if: type = pull_request OR NOT branch =~ /^(master$|optimization)/ OR fork
language: c
2015-09-21 07:50:27 +00:00
sudo: required
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
- DOCKER_TAG=3ds
- DOCKER_TAG=wii
- DOCKER_TAG=vita
2018-09-15 22:21:44 +00:00
- DOCKER_TAG=switch
- DOCKER_TAG=windows:w32
- DOCKER_TAG=windows:w64
jobs:
include:
- os: osx
osx_image: xcode12.2
compiler: clang
env: DOCKER_TAG=
2015-09-21 07:50:27 +00:00
2015-02-14 11:37:00 +00:00
before_install:
- '[ -z "$DOCKER_TAG" ] || docker pull mgba/$DOCKER_TAG'
2019-10-15 02:53:39 +00:00
- '. ./.travis-deps.sh'
- 'mkdir build && chmod 777 build'
2015-02-14 11:37:00 +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)'