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

big project

parent 74a8ef5d
No related branches found
No related tags found
No related merge requests found
Pipeline #40290 failed
...@@ -8,6 +8,7 @@ before_script: ...@@ -8,6 +8,7 @@ before_script:
stages: stages:
- build - build
- test - test
- coverage
# Define the job for building the project # Define the job for building the project
build: build:
...@@ -39,15 +40,27 @@ test: ...@@ -39,15 +40,27 @@ test:
- ls -l bin - ls -l bin
- ./bin/ExampleTests - ./bin/ExampleTests
- ls -l - ls -l
- cd CMakeFiles/ExampleTests.dir/ # - cd CMakeFiles/ExampleTests.dir/
- ls -l # - ls -l
- lcov -d . -c -o coverage.info # - lcov -d . -c -o coverage.info
- lcov -r coverage.info */build/* */tests/* */c++/* -o coverageFiltered.info # - lcov -r coverage.info */build/* */tests/* */c++/* -o coverageFiltered.info
- lcov --list coverageFiltered.info # - lcov --list coverageFiltered.info
- ls -l # - ls -l
- pwd # - pwd
coverage: '/Total:\|\s*([0-9.]+%)\s.*$/' # coverage: '/Total:\|\s*([0-9.]+%)\s.*$/'
artifacts: # artifacts:
# paths:
# - ./build/CMakeFiles/ExampleTests.dir/coverageFiltered.info
# 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: paths:
- ./build/CMakeFiles/ExampleTests.dir/coverageFiltered.info - ./build/CMakeFiles/ExampleTests.dir/coverageFiltered.info
when: always 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