diff --git a/.travis.yml b/.travis.yml index 1d627e2f..1a92421d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,9 +2,12 @@ language: cpp compiler: - gcc - - clang before_install: + - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y + - sudo apt-get update -qq + - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi + - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi - sudo pip install cpp-coveralls before_script: @@ -20,3 +23,4 @@ after_success: - make json_unit CXXFLAGS="-fprofile-arcs -ftest-coverage" - ./json_unit - coveralls --exclude lib --exclude tests --gcov-options '\-lp' +