aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Wagner <david.wagner@intel.com>2015-04-03 13:33:08 +0200
committerEric Laurent <elaurent@google.com>2015-04-24 13:39:13 -0700
commitcfd3e7cab2f5dbe267a937f5cafa098d191b63f5 (patch)
treec21aa9094f84690e99c45a4187132ecaecace8e5
parentdea4e788adf3a2432ad2835cef0d235e9f93e260 (diff)
downloadexternal_parameter-framework-cfd3e7cab2f5dbe267a937f5cafa098d191b63f5.zip
external_parameter-framework-cfd3e7cab2f5dbe267a937f5cafa098d191b63f5.tar.gz
external_parameter-framework-cfd3e7cab2f5dbe267a937f5cafa098d191b63f5.tar.bz2
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 <david.wagner@intel.com>
-rw-r--r--.travis.yml13
-rw-r--r--README.md1
2 files changed, 14 insertions, 0 deletions
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
diff --git a/README.md b/README.md
index f55aeaa..e041f89 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,7 @@
# parameter-framework
[![Build Status](https://travis-ci.org/01org/parameter-framework.svg?branch=master)](https://travis-ci.org/01org/parameter-framework)
+[![Coverage Status](https://coveralls.io/repos/01org/parameter-framework/badge.svg?branch=master)](https://coveralls.io/r/01org/parameter-framework)
## Introduction