Added lcov cleanup step

This commit is contained in:
Bartek Kryza
2022-04-02 19:02:24 +02:00
parent 5dc6691cc9
commit 57b6eaa623

View File

@@ -20,15 +20,15 @@ jobs:
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
- name: Build and unit test
run: |
NUMPROC=2 CMAKE_CXX_FLAGS="--coverage -fno-inline" make debug
make test
NUMPROC=2 CMAKE_CXX_FLAGS="--coverage -fno-inline" make test
- name: Run coverage
run: |
lcov --no-external --directory src -c -d debug -o coverage.info
lcov -l coverage.info
lcov -c -d debug -o coverage.info
lcov -e coverage.info "$PWD/src/*" -o coverage-src.info
lcov -l coverage-src.info
- name: Upload coverage
uses: codecov/codecov-action@v2
with:
files: coverage.info
files: coverage-src.info
name: clang-uml
fail_ci_if_error: true