Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
Merge pull request #344 from dawagner/codecov
Browse files Browse the repository at this point in the history
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.

Among nice new features is the ability to have coverage information displayed
on Pull Requests through a browser extension.
  • Loading branch information
dawagner committed Jan 29, 2016
2 parents 126d1b3 + 262ba9a commit 1909905
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
33 changes: 18 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1909905

Please sign in to comment.