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

big project

parent d71b5bcc
No related branches found
No related tags found
No related merge requests found
Pipeline #40304 passed
...@@ -8,7 +8,7 @@ before_script: ...@@ -8,7 +8,7 @@ before_script:
stages: stages:
- build - build
- test - test
- coverage # - coverage
# Define the job for building the project # Define the job for building the project
build: build:
...@@ -40,6 +40,13 @@ test: ...@@ -40,6 +40,13 @@ test:
- ls -l bin - ls -l bin
- ./bin/ExampleTests - ./bin/ExampleTests
- ls -l - ls -l
- cd CMakeFiles/ExampleTests.dir/
- ls -l
- lcov -d . -c -o coverage.info
- lcov -r coverage.info */build/* */tests/* */c++/* -o coverageFiltered.info
- lcov --list coverageFiltered.info
coverage: '/Total:\|\s*([0-9.]+%)\s.*$/'
# - cd CMakeFiles/ExampleTests.dir/ # - cd CMakeFiles/ExampleTests.dir/
# - ls -l # - ls -l
# - lcov -d . -c -o coverage.info # - lcov -d . -c -o coverage.info
...@@ -53,17 +60,15 @@ test: ...@@ -53,17 +60,15 @@ test:
# - ./build/CMakeFiles/ExampleTests.dir/coverageFiltered.info # - ./build/CMakeFiles/ExampleTests.dir/coverageFiltered.info
# when: always # when: always
coverage: #coverage:
stage: coverage # stage: coverage
script: # script:
- cd ./build/CMakeFiles/ExampleTests.dir/ # - cd ./build/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
coverage: '/Total:\|\s*([0-9.]+%)\s.*$/' # coverage: '/Total:\|\s*([0-9.]+%)\s.*$/'
when: on_success
dependencies:
- test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment