language: cpp
sudo: false

os: linux

before_script:
    - mkdir build

script:
    - cd build
    - cmake ..
    - cmake --build .
    - ctest

addons:
    apt:
        sources: &global_apt_sources
            - george-edison55-precise-backports
        packages: &global_apt_packages
            - cmake
            - cmake-data

matrix:
    include:
        - compiler: gcc
          env: COMPILER=g++-5
          apt:
              sources:
                  - *global_apt_sources
                  - ubuntu-toolchain-r-test
              packages:
                  - *global_apt_packages
                  - g++-5
        - compiler: gcc
          env: COMPILER=g++-6
          apt:
              sources:
                  - *global_apt_sources
                  - ubuntu-toolchain-r-test
              packages:
                  - *global_apt_packages
                  - g++-6


language: cpp
sudo: false

os: linux

before_script:
    - mkdir build

script:
    - cd build
    - cmake ..
    - cmake --build .
    - ctest

addons:
    apt:
        sources: &global_apt_sources
            - george-edison55-precise-backports
        packages: &global_apt_packages
            - cmake
            - cmake-data

matrix:
    include:
        - compiler: gcc
          env: COMPILER=g++-5
              apt:
                  sources:
                      - *global_apt_sources
                      - ubuntu-toolchain-r-test
                  packages:
                      - *global_apt_packages
                      - g++-5
        - compiler: gcc
          env: COMPILER=g++-6
          addons:
              apt:
                  sources:
                      - *global_apt_sources
                      - ubuntu-toolchain-r-test
                  packages:
                      - *global_apt_packages
                      - g++-6


Fix apt not being under addons
Fix apt not being under addons
