language: cpp

sudo: false

os:
  - linux
  - osx

compiler:
  - gcc
  - clang

addons:
  apt:
    packages:
      - 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


language: cpp

sudo: false

os:
  - linux
  - osx

dist: trusty

compiler:
  - gcc
  - clang

addons:
  apt:
    packages:
      - 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 -DCMAKE_CXX_FLAGS="-std=c++11" . && make && make check

Fix the Travis-CI testing on OS X.
Fix the Travis-CI testing on OS X.

AppleClang 7.3 doesn't get along with CppUnit by default.
