From d89e8aa3c7c8160fc32bb3357c9d04046b301477 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Thu, 18 May 2017 13:58:21 +0900 Subject: Enable OSX in Travis CI --- .travis.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index c3d07b2a..24a182cf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,16 @@ -dist: trusty language: cpp -compiler: - - gcc - - clang -before_install: - - sudo apt-get update -qq - - sudo apt-get install -y qt5-default +matrix: + include: + - os: linux + dist: trusty + compiler: gcc + - os: linux + dist: trusty + compiler: clang + - os: osx install: + - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; else sudo apt-get update -qq; fi + - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install qt5; export PATH="$PATH:/usr/local/opt/qt/bin"; else sudo apt-get install -y qt5-default; fi - mkdir build && cd build - cmake .. script: -- cgit v1.2.3