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

big project

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