1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00

Merge pull request #2497 from unitware/beta-lcov-report

lcov report
This commit is contained in:
Michael Keller 2017-05-12 02:23:39 +12:00 committed by GitHub
commit cf8b65e4ea
3 changed files with 19 additions and 1 deletions

View file

@ -64,7 +64,14 @@ elif [ $TARGET ] ; then
fi
elif [ $GOAL ] ; then
make V=0 $GOAL
make V=0 $GOAL || exit $?
if [ "test" == "$GOAL" ] ; then
lcov --directory . -b src/test --capture --output-file coverage.info 2>&1 | grep -E ":version '402\*', prefer.*'406\*" --invert-match
lcov --remove coverage.info 'lib/test/*' 'src/test/*' '/usr/*' --output-file coverage.info # filter out system and test code
lcov --list coverage.info # debug before upload
coveralls-lcov coverage.info # uploads to coveralls
fi
else
make V=0 all

View file

@ -27,6 +27,9 @@ git:
addons:
apt:
packages:
- lcov
- build-essential
- git
- libc6-i386
- time
@ -34,6 +37,10 @@ addons:
language: cpp
compiler: clang
before_install:
- pip install --user cpp-coveralls
- gem install coveralls-lcov
install:
- make arm_sdk_install

View file

@ -71,6 +71,10 @@ https://travis-ci.org/betaflight/betaflight
[![Build Status](https://travis-ci.org/betaflight/betaflight.svg?branch=master)](https://travis-ci.org/betaflight/betaflight)
Coveralls is used to monitor code coverage: https://coveralls.io/github/betaflight/betaflight
[![Coverage Status](https://coveralls.io/repos/github/betaflight/betaflight/badge.svg?branch=master)](https://coveralls.io/github/betaflight/betaflight?branch=master)
## Betaflight Releases
https://github.com/betaflight/betaflight/releases