language: cpp

os:
    - linux
    - osx

compiler:
    - clang
    - gcc

notifications:
    email:
        on_success: change
        on_failure: always

install:
    - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install cmake; fi

before_script:
    - mkdir build
    - cd build
    - cmake ..

script:
    - cmake --build .


language: cpp

compiler:
    - clang
    - gcc

notifications:
    email:
        on_success: change
        on_failure: always

before_install:
    # install a newer cmake since at this time Travis only has version 2.8
    - yes | sudo add-apt-repository ppa:kalakris/cmake
    - sudo apt-get update -qq

install:
    - sudo apt-get install cmake

before_script:
    - mkdir build
    - cd build
    - cmake ..

script:
    - cmake --build .


Remove os specific settings and install a more recent version of cmake.
Remove os specific settings and install a more recent version of cmake.
