Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Merge requests
!1516
[Test] CI Coverage
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
[Test] CI Coverage
feature/CI-coverage
into
master
Overview
1
Commits
4
Pipelines
4
Changes
1
Closed
Santiago Ospina De Los Ríos
requested to merge
feature/CI-coverage
into
master
1 month ago
Overview
1
Commits
4
Pipelines
4
Changes
1
Expand
This is just a test to check if coverage works properly in the
CI Configuration file
0
0
Merge request reports
Compare
master
version 2
a72f8335
1 month ago
version 1
41d4043f
1 month ago
master (base)
and
latest version
latest version
991e5b3a
4 commits,
1 month ago
version 2
a72f8335
3 commits,
1 month ago
version 1
41d4043f
2 commits,
1 month ago
1 file
+
33
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
33
−
0
Options
@@ -81,3 +81,36 @@ reuse:
before_script
:
"
"
script
:
-
reuse lint
debian:12 gcc-12-20 (with checking, coverage, no python)
:
extends
:
.common
image
:
registry.dune-project.org/docker/ci/debian:12
variables
:
DUNECI_CXXFLAGS
:
"
-DDUNE_CHECK_BOUNDS=1
-DDUNE_ISTL_WITH_CHECKING=1
-DDUNE_FMatrix_WITH_CHECKING=1
-DCHECK_RESERVEDVECTOR=1
--coverage
-lgcov
"
DUNECI_CMAKE_FLAGS
:
"
-DCMAKE_DISABLE_FIND_PACKAGE_Python3:BOOL=ON
"
DUNECI_TOOLCHAIN
:
gcc-12-20
# Notes:
# - Only works for gcc
# - The gcov executable needs to match the version of the gcc toolchain
GCOVR_OPTS
:
--gcov-executable gcov-12
--root $CI_PROJECT_DIR
--exclude $CI_PROJECT_DIR/build-cmake
--exclude-unreachable-branches
--xml-pretty
--print-summary
--output $CI_PROJECT_DIR/coverage.xml
after_script
:
# Create a coverage report
-
gcovr $GCOVR_OPTS $CI_PROJECT_DIR/build-cmake
artifacts
:
expire_in
:
2 years
reports
:
junit
:
junit/*.xml
coverage_report
:
coverage_format
:
cobertura
path
:
coverage.xml
# gcovr reports results (`--print-summary` option above). With this line we extract the
# result (% of covered lines) to report them in gitlab
coverage
:
/^\s*lines:\s*\d+.\d+\%/
Loading