Add OS X settings to travis.yml.

This commit is contained in:
Tsuda Kageyu 2016-02-14 03:21:21 +09:00
parent bb006e41d7
commit c349ba3a31
2 changed files with 19 additions and 3 deletions

View File

@ -8,12 +8,12 @@ root = true
insert_final_newline = true
# 2 space indentation
[*.{h,cpp,tcc,cmake}]
[*.{h,cpp,tcc,cmake,yml}]
indent_style = space
indent_size = 2
# Trim traling whitespaces
[*.{h,cpp,tcc,cmake}]
[*.{h,cpp,tcc,cmake,yml}]
trim_trailing_whitespace = true
# UTF-8 without BOM

View File

@ -1,12 +1,28 @@
language: cpp
sudo: false
os:
- linux
- osx
compiler:
- gcc
- clang
addons:
apt:
packages:
- libcppunit-dev
- libcppunit-dev
- zlib1g-dev
matrix:
exclude:
- os: osx
compiler: gcc
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install cppunit; fi
script: cmake -DBUILD_TESTS=ON -DBUILD_EXAMPLES=ON -DBUILD_BINDINGS=ON . && make && make check