Files
g2o/script/codecov.sh.in
Rainer Kuemmerle 7fc9d1ccc2 Move EXTERNAL folder under g2o
* simplify handling of include directories in case g2o is installed
* fix #477
2021-01-04 18:45:47 +01:00

12 lines
655 B
Bash

#!/bin/bash
lcov --directory . --capture --output-file coverage.info
# filter out system and extra files.
# To also not include test code in coverage add them with full path to the patterns: '*/tests/*'
lcov --remove coverage.info '/usr/*' "@G2O_SRC_DIR@/g2o/EXTERNAL/*" "@G2O_SRC_DIR@/unit_test/*" --output-file coverage.info
# output coverage data for debugging (optional)
#lcov --list coverage.info
# Uploading to CodeCov
# '-f' specifies file(s) to use and disables manual coverage gathering and file search which has already been done above
bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports"