sudo: false
language: c

matrix:
  include:
    - env: CC=gcc-5
      addons:
        apt:
          packages: ['g++-5', 'cmake', 'ninja-build']
          sources: ['ubuntu-toolchain-r-test', 'kalakris-cmake']
    - env: CC=clang-3.8
      addons:
        apt:
          packages: ['clang-3.8', 'cmake', 'ninja-build']
          sources: ['ubuntu-toolchain-r-test', 'kalakris-cmake']

before_script:
  - mkdir build
  - cd build

script:
  - cmake -G"Ninja" ..
  - ninja

sudo: false
language: c

matrix:
  include:
    - env: CC=gcc-5
      addons:
        apt:
          packages: ['g++-5', 'ninja-build']
          sources: ubuntu-toolchain-r-test
    - env: CC=clang-3.8
      addons:
        apt:
          packages: ['clang-3.8', 'ninja-build']
          sources: ubuntu-toolchain-r-test

before_install:
  - export PATH="$HOME/bin:$PATH"
  - mkdir ~/bin
  - wget --no-check-certificate --no-clobber -O /tmp/tools/cmake https://cmake.org/files/v3.4/cmake-3.4.0-rc3-Linux-x86_64.sh || true
  - chmod -R +x /tmp/tools

install:
  - /tmp/tools/cmake --prefix="$HOME" --exclude-subdir

before_script:
  - mkdir build
  - cd build

script:
  - cmake -G"Ninja" ..
  - ninja

Use newer version of CMake on Travis.
Use newer version of CMake on Travis.
