language: cpp
compiler:
  - clang
  - gcc
before_install:
  - sudo apt-add-repository -y ppa:jkeiren/ppa
  - if test $CC = gcc; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
  - sudo apt-get update -qq
  - if test $CC = gcc; then sudo apt-get install --yes --force-yes gcc-4.7 g++-4.7; fi
  - if test $CC = gcc; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 20; fi
  - if test $CC = gcc; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 20; fi
  - if test $CC = gcc; then sudo update-alternatives --config gcc; fi
  - if test $CC = gcc; then sudo update-alternatives --config g++; fi

script: ./scripts/travis.sh

# Explicit sudo:false to run on Travis containers (much faster)
sudo: false
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
      - jkeiren/ppa
    packages:
      - gcc-4.7
      - g++-4.7
      - clang

language: cpp
compiler:
  - clang
  - gcc

script: ./scripts/travis.sh

Update to use sudoless containers.
Update to use sudoless containers.
