From de70523bc3e98b66a04499ac0a0cc3b0ac1bb11d Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Wed, 17 May 2017 09:23:52 +0900 Subject: [PATCH] experimentally add osx in travis.yml --- .travis.yml | 57 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 24 deletions(-) diff --git a/.travis.yml b/.travis.yml index 27eed29..dec753a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,31 +1,41 @@ dist: trusty -language: cpp matrix: include: - - compiler: gcc - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - build-essential - - g++-5 - env: COMPILER=g++-5 - - compiler: clang - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.7 - packages: - - build-essential - - clang-3.7 - env: COMPILER=clang++-3.7 + - os: linux + language: cpp + compiler: gcc + env: COMPILER="g++-5" + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-5 + - build-essential + - cmake + - libboost-dev + - os: linux + language: cpp + compiler: clang + env: COMPILER="clang++-3.7" + addons: + apt: + sources: + - ubuntu-toolchain-r-test + - llvm-toolchain-precise-3.7 + packages: + - clang-3.7 + - build-essential + - cmake + - libboost-dev + - os: osx + language: cpp + compiler: clang -install: -- sudo apt-get -qq update; -- sudo apt-get -qq install libboost-all-dev; +before_install: + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install cmake boost; fi script: - mkdir build @@ -34,4 +44,3 @@ script: - cmake -DCMAKE_CXX_COMPILER=$COMPILER .. - make - make test -