sudo: false

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
      - kubuntu-backports
    packages:
      - cmake

os:
  - linux
  - osx

language: cpp

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

script:
  - cmake --build .

after_script:
  - cmake --build . --target test


# Need these for a more recent CMake on Linux
sudo: required
dist: trusty

os:
  - linux
  - osx

language: cpp

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

script:
  - cmake --build .

after_script:
  - cmake --build . --target test


Use trusty linux distro for more recent CMake version
Use trusty linux distro for more recent CMake version
