Commit ef479921 by Matt Clarkson

Added coveralls support

parent 344775db
...@@ -5,6 +5,8 @@ language: cpp ...@@ -5,6 +5,8 @@ language: cpp
matrix: matrix:
include: include:
- compiler: gcc - 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 env: COMPILER=g++-4.6 STD=c++0x BUILD_TYPE=Debug
- compiler: gcc - compiler: gcc
env: COMPILER=g++-4.6 STD=c++0x BUILD_TYPE=Release env: COMPILER=g++-4.6 STD=c++0x BUILD_TYPE=Release
...@@ -21,7 +23,19 @@ before_script: ...@@ -21,7 +23,19 @@ before_script:
- source .travis-setup.sh - source .travis-setup.sh
- mkdir build && cd build - 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: script:
- cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_CXX_FLAGS="-std=${STD}" - cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_CXX_FLAGS="-std=${STD}"
- make - make
- make CTEST_OUTPUT_ON_FAILURE=1 test - 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment