From cfd3e7cab2f5dbe267a937f5cafa098d191b63f5 Mon Sep 17 00:00:00 2001 From: David Wagner Date: Fri, 3 Apr 2015 13:33:08 +0200 Subject: coveralls: send coverage report to coveralls.io coveralls.io is a service that uses information from gcov (generated during "make test") to provide a coverage report online: https://coveralls.io/r/01org/parameter-framework Some files must be ignored, specifically: generated files (python bindings and files generated by CMake), tests (because they would inflate the coverage rate) and samples (for now, only the skeleton subsystem). A "badge" is also added to the readme showing the coverage rate. Signed-off-by: David Wagner --- .travis.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 1f0e1c8..449dcad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ before_install: - sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test - sudo add-apt-repository --yes ppa:kalakris/cmake # Non official cmake backport - sudo apt-get update -qq + - sudo pip install cpp-coveralls install: - sudo apt-get install --yes swig cmake valgrind g++-4.8 @@ -38,6 +39,18 @@ script: sudo ldconfig && CTEST_OUTPUT_ON_FAILURE=1 make ExperimentalTest ExperimentalCoverage ExperimentalMemCheck ) +after_success: + # Push coverage info on coveralls.io. + # Ignore generated files, samples and tests + - coveralls + --exclude "build/bindings/python" + --exclude "build/CMakeFiles" + --exclude "skeleton-subsystem" + --exclude "test/test-subsystem" + --exclude "bindings/c/Test.cpp" + --exclude "test/tokenizer" + --gcov-options '\-lp' + notifications: email: - david.wagner@intel.com -- cgit v1.1