From ef479921251d6104ca590ddf0d85c331fdbf803a Mon Sep 17 00:00:00 2001 From: Matt Clarkson Date: Tue, 12 May 2015 16:17:38 +0100 Subject: [PATCH] Added coveralls support --- .travis.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.travis.yml b/.travis.yml index 91e82eb..8b138ce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,8 @@ language: cpp # travis-ci.org more readable. matrix: include: + - compiler: gcc + env: COMPILER=g++-4.6 STD=c++0x BUILD_TYPE=Coverage - compiler: gcc env: COMPILER=g++-4.6 STD=c++0x BUILD_TYPE=Debug - compiler: gcc @@ -21,7 +23,19 @@ before_script: - source .travis-setup.sh - mkdir build && cd build +install: + - if [ "${BUILD_TYPE}" == "Coverage" -a "${TRAVIS_OS_NAME}" == "linux" ]; then + PATH=~/.local/bin:${PATH}; + pip install --user --upgrade pip; + pip install --user cpp-coveralls; + fi + script: - cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_CXX_FLAGS="-std=${STD}" - make - make CTEST_OUTPUT_ON_FAILURE=1 test + +after_success: + - if [ "${BUILD_TYPE}" == "Coverage" -a "${TRAVIS_OS_NAME}" == "linux" ]; then + coveralls --include src --include include --gcov-options '\-lp' --root .. --build-root .; + fi