Skip to content
Snippets Groups Projects
Commit 27b5f1aa authored by Fadi Imani's avatar Fadi Imani
Browse files

big project

parent b69f91e7
No related branches found
No related tags found
No related merge requests found
Pipeline #40291 failed
......@@ -54,13 +54,26 @@ test:
# when: always
coverage:
# stage: coverage
## script:
## - lcov -d build/CMakeFiles/ExampleTests.dir -c -o coverage.info
## - lcov -r coverage.info */build/* */tests/* */c++/* -o coverageFiltered.info
## - lcov --list coverageFiltered.info
## coverage: '/Total:\|\s*([0-9.]+%)\s.*$/'
## artifacts:
## paths:
## - ./build/CMakeFiles/ExampleTests.dir/coverageFiltered.info
## when: always
stage: coverage
script:
- lcov -d build/CMakeFiles/ExampleTests.dir -c -o coverage.info
- lcov -r coverage.info */build/* */tests/* */c++/* -o coverageFiltered.info
- lcov --list coverageFiltered.info
coverage: '/Total:\|\s*([0-9.]+%)\s.*$/'
- gcov -f -b build/*
- lcov --directory build --base-directory . -c -o cov.info
- mkdir report1
- genhtml cov.info -o report
coverage: '/^\s*lines\S*\s*(\d+(?:\.\d+)?%)\s*/'
when: on_success
dependencies:
- job:test
artifacts:
paths:
- ./build/CMakeFiles/ExampleTests.dir/coverageFiltered.info
when: always
\ No newline at end of file
- report/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment