From 262ba9a1b11c801c5f6cc131d6134dd07ffa8eb9 Mon Sep 17 00:00:00 2001 From: David Wagner Date: Mon, 25 Jan 2016 17:45:30 +0100 Subject: [PATCH] Switch from coveralls to codecov Codecov has a nicer UI and more features even though the coverage script is a bit more painful to use. See https://codecov.io/github/01org/parameter-framework Among nice new features is the ability to have coverage information displayed on Pull Requests through a browser extension. On coveralls, it was painful to find the coverage for a specific revision whereas it is trivial to do on Codecov. Signed-off-by: David Wagner --- .travis.yml | 33 ++++++++++++++++++--------------- README.md | 2 +- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index 71d95d6e7..34ed0e7d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,7 +37,7 @@ addons: - clang-format-3.8 install: - - pip install --user cpp-coveralls; export PATH=$HOME/.local/bin:$PATH + - wget https://codecov.io/bash -O $HOME/codecov; chmod +x $HOME/codecov # This version of catch is known to work. - wget --directory-prefix $PREFIX/include https://raw.github.com/philsquared/Catch/v1.2.1/single_include/catch.hpp @@ -82,22 +82,25 @@ script: make install ) after_success: - # Push coverage info on coveralls.io. + # Push coverage info on codecov.io. # Ignore generated files, samples and tests - if [ "${coverage}" = "ON" ]; then - coveralls --exclude "build_debug/bindings/python" - --exclude "build_debug/CMakeFiles" - --exclude "build" - --exclude "install" - --exclude "skeleton-subsystem" - --exclude "tools/clientSimulator" - --exclude "test/test-subsystem" - --exclude "test/functional-tests" - --exclude "bindings/c/Test.cpp" - --exclude "test/tokenizer" - --exclude "utility/test" - --gcov /usr/bin/gcov-4.8 - --gcov-options '\--long-file-names --preserve-paths'; + $HOME/codecov + -g "*/build_debug/bindings/python/*" + -g "*/build_debug/CMakeFiles/*" + -g "*/build/*" + -g "*/install/*" + -g "*/skeleton-subsystem/*" + -g "*/tools/clientSimulator/*" + -g "*/test/test-subsystem/*" + -g "*/test/introspection-subsystem/*" + -g "*/test/functional-tests/*" + -g "*/test/tmpfile/*" + -g "*/test/tokenizer/*" + -g "*/bindings/c/Test.cpp" + -g "*/utility/test/*" + -x /usr/bin/gcov-4.8 + -a '\--long-file-names --preserve-paths'; fi notifications: diff --git a/README.md b/README.md index 54a80f9dd..c492360a3 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Build Status](https://travis-ci.org/01org/parameter-framework.svg?branch=master)](https://travis-ci.org/01org/parameter-framework) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/ga24jp8tet0qimbu/branch/master)](https://ci.appveyor.com/project/parameter-framework/parameter-framework) -[![Coverage Status](https://coveralls.io/repos/01org/parameter-framework/badge.svg?branch=master)](https://coveralls.io/r/01org/parameter-framework) +[![Coverage Status](https://codecov.io/github/01org/parameter-framework/coverage.svg?branch=master)](https://codecov.io/github/01org/parameter-framework?branch=master) ## Introduction