CI coverage uploading script

This commit is contained in:
2018-12-29 09:24:40 +07:00
parent 2f16ef0934
commit c8ec1a282a
4 changed files with 11 additions and 4 deletions

View File

@@ -6,11 +6,12 @@ mkdir -p $BUILD_DIR/coverage
cd $BUILD_DIR/coverage
cmake -DCMAKE_BUILD_TYPE=Debug -DE2D_BUILD_WITH_COVERAGE=ON ../..
cmake --build . -- -j8
lcov -d . -z
ctest --verbose
lcov -d . -c -o "coverage.info"
lcov -r "coverage.info" "*/Xcode.app/*" "*/untests/*" "*/3rdparty/*" "*/modules/*" -o "coverage-filtered.info"
lcov -d . -z
lcov -r "coverage.info" "*/usr/*" "*/Xcode.app/*" "*/untests/*" "*/3rdparty/*" "*/modules/*" -o "coverage.info"
lcov -l "coverage.info"
genhtml -o "html" "coverage-filtered.info"
open html/index.html
bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"