From a612065acc19f63d520c3c9bde00fd18fb11e9b5 Mon Sep 17 00:00:00 2001 From: Anders Hoglund Date: Sat, 27 May 2017 15:11:48 +0200 Subject: [PATCH] Coverage only created and published if PUBLISHCOV is defined. --- .travis.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.sh b/.travis.sh index 4be0c0bff..efa5488c0 100755 --- a/.travis.sh +++ b/.travis.sh @@ -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