language: cpp
matrix:
  include:
    - compiler: gcc
      env: GCC=4.7
    - compiler: gcc
      env: GCC=4.8
    - compiler: gcc
      env: GCC=4.9
    - compiler: gcc
      env: GCC=5
    - compiler: clang
      env: DEPGCC=4.7
before_install:
  - if [ -n "$GCC$DEPGCC" ]; then travis_retry sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi
  - if [ -n "$GCC$DEPGCC" ]; then travis_retry sudo apt-get update -qq; fi
  - if [ -n "$GCC$DEPGCC" ]; then travis_retry sudo apt-get install -qq g++-$GCC$DEPGCC; fi
  - if [ -n "$GCC" ]; then export CXX=g++-$GCC; fi
script: make -C tests test

sudo: false
language: cpp
matrix:
  include:
    - compiler: gcc
      env: COMPILER=g++-4.7
      addons: {apt: {packages: [g++-4.7], sources: [ubuntu-toolchain-r-test]}}
    - compiler: gcc
      env: COMPILER=g++-4.8
      addons: {apt: {packages: [g++-4.8], sources: [ubuntu-toolchain-r-test]}}
    - compiler: gcc
      env: COMPILER=g++-4.9
      addons: {apt: {packages: [g++-4.9], sources: [ubuntu-toolchain-r-test]}}
    - compiler: gcc
      env: COMPILER=g++-5
      addons: {apt: {packages: [g++-5], sources: [ubuntu-toolchain-r-test]}}
    - compiler: clang
      env: COMPILER=clang++
      addons: {apt: {packages: [g++-4.7], sources: [ubuntu-toolchain-r-test]}}
    - compiler: clang
      env: COMPILER=clang++-3.5
      addons: {apt: {packages: [clang-3.5], sources: [ubuntu-toolchain-r-test,llvm-toolchain-precise-3.5]}}
    - compiler: clang
      env: COMPILER=clang++-3.6
      addons: {apt: {packages: [clang-3.6], sources: [ubuntu-toolchain-r-test,llvm-toolchain-precise-3.6]}}
script:
  - CXX=$COMPILER make -C tests compile

Update Travis CI integration to container-based.
Update Travis CI integration to container-based.
