mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Merge pull request #3161 from AndersHoglund/conditional_coverage
Coverage only created and published if PUBLISHCOV is defined.
This commit is contained in:
commit
63aa212efa
1 changed files with 2 additions and 1 deletions
|
@ -68,13 +68,14 @@ elif [ $TARGET ] ; then
|
|||
elif [ $GOAL ] ; then
|
||||
$MAKE $GOAL || exit $?
|
||||
|
||||
if [ $PUBLISHCOV ] ; then
|
||||
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
|
||||
|
||||
fi
|
||||
else
|
||||
$MAKE all
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue