From 14969ec2ea30489fbb4b89923f8a6bbc7523b3b3 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 3 Jul 2014 07:54:03 -0700 Subject: [PATCH] Submit code coverage information to Coveralls --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 856bb39ae..396941dcd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,8 @@ before_install: - sudo add-apt-repository -y ppa:vslavik/poedit - sudo apt-get update -qq - sudo apt-get install -qq g++-4.8 - - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8 + - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8 --slave /usr/bin/gcov gcov /usr/bin/gcov-4.8 + - sudo pip install cpp-coveralls install: - sudo apt-get install -y -qq libasound2-dev libfftw3-dev libhunspell-dev yasm libfribidi-dev libass-dev libffms2-dev libwxgtk3.0-dev libicu-dev luarocks - sudo luarocks install busted > /dev/null @@ -23,9 +24,12 @@ install: script: - export CPATH=$(pwd)/vendor/boost - export LD_LIBRARY_PATH=$(pwd)/vendor/boost/stage/lib:$LD_LIBRARY_PATH + - export CPPFLAGS="-fprofile-arcs -ftest-coverage" + - export LIBS="-lgcov" - autoreconf -if - ./configure BOOST_LDFLAGS="-L$(pwd)/vendor/boost/stage/lib" || cat config.log - make -j3 all test + - coveralls --exclude vendor --exclude tests notifications: email: - on_success: change