diff options
Diffstat (limited to 'src/boost/libs/beast/tools/coverage.sh')
-rwxr-xr-x | src/boost/libs/beast/tools/coverage.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/boost/libs/beast/tools/coverage.sh b/src/boost/libs/beast/tools/coverage.sh new file mode 100755 index 000000000..508e83d6b --- /dev/null +++ b/src/boost/libs/beast/tools/coverage.sh @@ -0,0 +1,9 @@ +#! /bin/bash +set -e +lcov --directory bin.v2 --capture --no-external --directory $(pwd) --output-file coverage.info > /dev/null 2>&1 +lcov --extract coverage.info $(pwd)'/boost/beast/*' --output-file coverage.info > /dev/null +lcov --remove coverage.info $(pwd)'/boost/beast/_experimental/*' --output-file coverage.info > /dev/null +lcov --list coverage.info +# Codecov improperly detects project root in AzP, so we need to upload from beast git repo +cd libs/beast +curl -s https://codecov.io/bash -o codecov && bash ./codecov -X gcov -f ../../coverage.info -t $CODECOV_TOKEN |