mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-12-24 18:21:04 +00:00
experimentally add osx in travis.yml
This commit is contained in:
parent
fc4fa8e3eb
commit
de70523bc3
31
.travis.yml
31
.travis.yml
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user