Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Julien Cabieces
otb
Commits
da25b7b1
Commit
da25b7b1
authored
5 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
CI: don't move gcov reports
parent
25cc88fa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CI/otb_coverage.sh
+6
-17
6 additions, 17 deletions
CI/otb_coverage.sh
with
6 additions
and
17 deletions
CI/otb_coverage.sh
+
6
−
17
View file @
da25b7b1
...
...
@@ -8,22 +8,11 @@ if [ -z "$BUILD_DIR" ]; then
BUILD_DIR
=
${
OTB_DIR
}
/build
fi
ls
-lh
$BUILD_DIR
/Modules/Core/Common/src/CMakeFiles/OTBCommon.dir/otbLogger.cxx.gcda
cd
$BUILD_DIR
mkdir
cov_filter
echo
Generating gcov reports
in
$BUILD_DIR
...
find
$BUILD_DIR
-name
"*.gcda"
-exec
llvm-cov gcov
-p
'{}'
>
/dev/null
\;
find
.
-maxdepth
1
-regex
'.*#Modules#[a-zA-Z0-9]+#[a-zA-Z0-9]+#\(include\|src\|app\)#.*\.gcov'
-exec
mv
'{}'
cov_filter
\;
rm
*
.gcov
cd
$OTB_DIR
echo
Filtered
$(
ls
$BUILD_DIR
/cov_filter |
wc
-l
)
gcov reports
du
-sh
cov_filter
echo
Generating
$BUILD_DIR
/coverage_report.xml ...
gcovr
-r
$OTB_DIR
-x
-g
-k
--object-directory
=
$BUILD_DIR
/cov_filter
>
$BUILD_DIR
/coverage_report.xml
cd
$BUILD_DIR
find
$BUILD_DIR
-name
"*.gcda"
-exec
llvm-cov gcov
-p
'{}'
>
/dev/null
\;
ls
*
.gcov |
grep
-E
-v
'#Modules#[a-zA-Z0-9]+#[a-zA-Z0-9]+#(include|src|app)#'
| xargs
-L
1
rm
echo
Filtered
$(
ls
$BUILD_DIR
/
*
.gcov |
wc
-l
)
gcov reports
ls
-lh
$BUILD_DIR
/coverage_report.xml
gcovr
-r
$OTB_DIR
-x
-g
--object-directory
=
$BUILD_DIR
>
$BUILD_DIR
/coverage_report.xml
echo
Generated
$BUILD_DIR
/coverage_report.xml with
$(
grep
-c
'<class '
$BUILD_DIR
/coverage_report.xml
)
classes
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