IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue 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
Pranav Sampathkumar
corsika
Commits
8c2ccb82
Commit
8c2ccb82
authored
3 years ago
by
ralfulrich
Committed by
Ralf Ulrich
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
better exclude patterns for coverage
parent
9e4f3858
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
CMakeLists.txt
+5
-1
5 additions, 1 deletion
CMakeLists.txt
with
6 additions
and
2 deletions
.gitlab-ci.yml
+
1
−
1
View file @
8c2ccb82
...
@@ -479,7 +479,7 @@ coverage:
...
@@ -479,7 +479,7 @@ coverage:
-
ctest -j4
-
ctest -j4
-
cmake --build . --target coverage
-
cmake --build . --target coverage
-
tar czf coverage-report.tar.gz coverage-report
-
tar czf coverage-report.tar.gz coverage-report
coverage
:
'
/^.*
function
s\.+:\s(.*\%)\s/'
coverage
:
'
/^.*
line
s\.+:\s(.*\%)\s/'
rules
:
rules
:
-
if
:
'
$CI_MERGE_REQUEST_LABELS
=~
/Ready
for
code
review/'
# run on merge requests, if label 'Ready for code review' is set
-
if
:
'
$CI_MERGE_REQUEST_LABELS
=~
/Ready
for
code
review/'
# run on merge requests, if label 'Ready for code review' is set
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
...
...
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
5
−
1
View file @
8c2ccb82
...
@@ -164,7 +164,11 @@ if (CMAKE_BUILD_TYPE STREQUAL Coverage)
...
@@ -164,7 +164,11 @@ if (CMAKE_BUILD_TYPE STREQUAL Coverage)
add_custom_command
(
add_custom_command
(
OUTPUT coverage.info
OUTPUT coverage.info
COMMAND
${
LCOV_BIN_DIR
}
/lcov -q --remove raw-coverage.info
"*/usr/*"
"/usr/*"
--output-file coverage2.info
COMMAND
${
LCOV_BIN_DIR
}
/lcov -q --remove raw-coverage.info
"*/usr/*"
"/usr/*"
--output-file coverage2.info
COMMAND
${
LCOV_BIN_DIR
}
/lcov --remove coverage2.info
"*/externals/*"
"*/tests/*"
"*/sibyll2.3d.cpp"
"*/.conan/*"
"*/include/Pythia8/*"
"
${
CMAKE_SOURCE_DIR
}
/modules/*"
"
${
CMAKE_BINARY_DIR
}
/modules/*"
--output-file coverage.info
COMMAND
${
LCOV_BIN_DIR
}
/lcov --remove coverage2.info
"*/externals/*"
"*/tests/*"
"*/sibyll2.3d.cpp"
"*/.conan/*"
"*/include/Pythia8/*"
"*/install/*"
"
${
CMAKE_SOURCE_DIR
}
/modules/*"
"
${
CMAKE_BINARY_DIR
}
/modules/*"
--output-file coverage.info
COMMAND
${
CMAKE_COMMAND
}
-E remove coverage2.info
COMMAND
${
CMAKE_COMMAND
}
-E remove coverage2.info
DEPENDS raw-coverage.info
DEPENDS raw-coverage.info
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment