diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 57158c20a20966731d42a75921337e8d67bf9220..b1fcbf8c888ec6786be3ae7fd9018b04c8b1f816 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,7 @@ before_script: stages: - build - test + - coverage # Define the job for building the project build: @@ -39,15 +40,27 @@ test: - ls -l bin - ./bin/ExampleTests - 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 - - ls -l - - pwd - coverage: '/Total:\|\s*([0-9.]+%)\s.*$/' - artifacts: +# - 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 +# - ls -l +# - pwd +# coverage: '/Total:\|\s*([0-9.]+%)\s.*$/' +# 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: - ./build/CMakeFiles/ExampleTests.dir/coverageFiltered.info - when: always + when: always \ No newline at end of file