diff options
Diffstat (limited to 'src/scripts/ci/after_success.sh')
-rwxr-xr-x | src/scripts/ci/after_success.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/scripts/ci/after_success.sh b/src/scripts/ci/after_success.sh new file mode 100755 index 000000000..2aaabe294 --- /dev/null +++ b/src/scripts/ci/after_success.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +BUILD_MODE=$1 + +set -ev + +if [ "$BUILD_MODE" = "coverage"] +then + lcov --directory . --capture --output-file coverage.info + lcov --remove coverage.info 'tests/*' '/usr/*' --output-file coverage.info + lcov --list coverage.info + coveralls-lcov -t $COVERALLS_REPO_TOKEN coverage.info +fi |