experimentally add osx in travis.yml

This commit is contained in:
ToruNiina 2017-05-17 09:23:52 +09:00
parent fc4fa8e3eb
commit de70523bc3

View File

@ -1,31 +1,41 @@
dist: trusty
language: cpp
matrix:
include:
- compiler: gcc
- os: linux
language: cpp
compiler: gcc
env: COMPILER="g++-5"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- build-essential
- g++-5
env: COMPILER=g++-5
- compiler: clang
- 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:
- build-essential
- clang-3.7
env: COMPILER=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