sudo: required
dist: trusty

language: cpp

script:
  - mkdir build
  - cd build
  - cmake -DCMAKE_CXX_COMPILER=$COMPILER ..
  - cmake --build .
  - ctest --versbose

matrix:
 include:
  - os: linux
    compiler: g++
    env: COMPILER=g++-6 BUILD=Debug ARCH=64
    addons:
     apt:
      sources:
       - ubuntu-toolchain-r-test
      packages:
       - g++-6
  - os: linux
    compiler: g++
    env: COMPILER=g++-6 BUILD=Release ARCH=64
    addons:
     apt:
      sources:
       - ubuntu-toolchain-r-test
      packages:
       - g++-6
  - os: linux
    compiler: g++
    env: COMPILER=g++-5 BUILD=Debug ARCH=64
    addons:
     apt:
      sources:
       - ubuntu-toolchain-r-test
      packages:
       - g++-5
  - os: linux
    compiler: g++
    env: COMPILER=g++-5 BUILD=Release ARCH=64
    addons:
     apt:
      sources:
       - ubuntu-toolchain-r-test
      packages:
       - g++-5

sudo: required
dist: trusty
group: edge

language: cpp

script:
  - mkdir build
  - cd build
  - cmake -DCMAKE_CXX_COMPILER=$COMPILER ..
  - cmake --build .
  - ctest --versbose

matrix:
 include:
  - os: linux
    compiler: g++
    env: COMPILER=g++-6 BUILD=Debug ARCH=64
    addons:
     apt:
      sources:
       - ubuntu-toolchain-r-test
      packages:
       - g++-6
  - os: linux
    compiler: g++
    env: COMPILER=g++-6 BUILD=Release ARCH=64
    addons:
     apt:
      sources:
       - ubuntu-toolchain-r-test
      packages:
       - g++-6
  - os: linux
    compiler: g++
    env: COMPILER=g++-5 BUILD=Debug ARCH=64
    addons:
     apt:
      sources:
       - ubuntu-toolchain-r-test
      packages:
       - g++-5
  - os: linux
    compiler: g++
    env: COMPILER=g++-5 BUILD=Release ARCH=64
    addons:
     apt:
      sources:
       - ubuntu-toolchain-r-test
      packages:
       - g++-5

Use the latest Trusty image
Use the latest Trusty image

More info: http://mailchi.mp/travis-ci/we-are-updating-all-our-ubuntu-trusty-1404-images-this-wednesday