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