language: cpp
git:
  submodules: false

compiler:
  - gcc
  - clang

before_install:
  - sudo add-apt-repository ppa:kalakris/cmake -y
  - sudo apt-get update -qq
  - sudo apt-get install cmake

before_script:
  - mkdir build
  - cd build
  - cmake .. -DCMAKE_BUILD_TYPE=Release

script: make && make test

after_failure: if [ -d Testing ]; then cat Testing/Temporary/LastTest.log; fi