diff --git a/.travis.yml b/.travis.yml index 74377d6..d3b8fce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,18 +4,12 @@ script: - cmake -DCMAKE_BUILD_TYPE=Debug test/ && make - ./unit/unit --gtest_filter='*.*' -before_install: - #g++4.8.1 - - if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi - - sudo apt-get update -qq - # clang 3.4 - - if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi - - sudo apt-get update -qq +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gcc-4.8 + - g++-4.8 -install: - # g++4.8.1 - - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi - - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi - # clang 3.4 - - if [ "$CXX" == "clang++" ]; then sudo apt-get install --allow-unauthenticated -qq clang-3.4; fi - - if [ "$CXX" == "clang++" ]; then export CXX="clang++-3.4"; fi +sudo: off