language: cpp
matrix:
  include:
  - compiler: gcc4
    sudo: required
    env:
    - COMPILER=g++
    - STD=c++11
  - compiler: clang34
    sudo: required
    env:
    - COMPILER=clang++
    - STD=c++11
  - compiler: gcc5
    addons:
      apt:
        sources:
        - ubuntu-toolchain-r-test
        packages:
        - g++-5
    env:
    - COMPILER=g++-5
    - STD=c++1z
  - compiler: clang38
    addons:
      apt:
        sources:
        - ubuntu-toolchain-r-test
        - llvm-toolchain-precise-3.8
        packages:
        - clang-3.8
    env:
    - COMPILER=clang++-3.8
    - STD=c++1z
script:
- $COMPILER --version
- make CXX=$COMPILER STD=$STD
- ./all_tests.out

language: cpp
matrix:
  include:
  - compiler: gcc4
    dist: trusty
    sudo: false
    env:
    - COMPILER=g++
    - STD=c++11
  - compiler: clang34
    dist: trusty
    sudo: false
    env:
    - COMPILER=clang++
    - STD=c++11
  - compiler: gcc5
    addons:
      apt:
        sources:
        - ubuntu-toolchain-r-test
        packages:
        - g++-5
    env:
    - COMPILER=g++-5
    - STD=c++1z
  - compiler: clang38
    addons:
      apt:
        sources:
        - ubuntu-toolchain-r-test
        - llvm-toolchain-precise-3.8
        packages:
        - clang-3.8
    env:
    - COMPILER=clang++-3.8
    - STD=c++1z
script:
- $COMPILER --version
- make CXX=$COMPILER STD=$STD
- ./all_tests.out

Build on dist: trusty for GCC 4.8 and Clang 3.4
Build on dist: trusty for GCC 4.8 and Clang 3.4