all repos — mgba @ ff0de9cae27c413f244f5a5d38a1e32ec94343f7

mGBA Game Boy Advance Emulator

.travis.yml: Use an explicitly defined build matrix. (#544)

* .travis.yml: Use an explicitly defined build matrix.

* Attempt to use GCC on Mac.

* Add gcc4.8 to Travis deps.

* Remove gcc set from .travis.yml.

* .travis-deps: Install and set compiler to GCC only if we need it.

* Formatting

* Remove redundancy

* .travis.yml: source the deps script.
waddlesplash waddlesplash@gmail.com
Mon, 20 Mar 2017 19:01:56 -0400
commit

ff0de9cae27c413f244f5a5d38a1e32ec94343f7

parent

5f59ad4c43b530f0754c883e61c2afa8fdd6c3fb

2 files changed, 18 insertions(+), 10 deletions(-)

jump to
M .travis-deps.sh.travis-deps.sh

@@ -2,6 +2,11 @@ #!/bin/sh

if [ $TRAVIS_OS_NAME = "osx" ]; then brew update brew install qt5 ffmpeg imagemagick sdl2 libzip libpng + if [ "$CC" == "gcc" ]; then + brew install gcc@4.9 + export CC=gcc-4.9 + export CXX=g++-4.9 + fi else sudo apt-get clean sudo apt-get update
M .travis.yml.travis.yml

@@ -1,16 +1,19 @@

-os: - - linux - - osx - language: c -compiler: - - gcc - - clang - sudo: required -dist: trusty +matrix: + include: + - os: linux + dist: trusty + compiler: clang + - os: linux + dist: trusty + compiler: gcc + - os: osx + compiler: clang + - os: osx + compiler: gcc before_install: - - ./.travis-deps.sh + - source ./.travis-deps.sh script: mkdir build && cd build && cmake -DCMAKE_PREFIX_PATH=/usr/local/opt/qt5 .. && make