Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
207
Issues
207
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
d2b3a5d4
Commit
d2b3a5d4
authored
Jul 04, 2019
by
Guillaume Pasero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: try fixing gcovr
parent
f8d23f6e
Pipeline
#2116
failed with stages
in 33 minutes and 35 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
15 deletions
+3
-15
.gitlab-ci.yml
.gitlab-ci.yml
+1
-2
CI/ubuntu-18.04-llvm-qa.cmake
CI/ubuntu-18.04-llvm-qa.cmake
+2
-13
No files found.
.gitlab-ci.yml
View file @
d2b3a5d4
...
...
@@ -227,8 +227,7 @@ ubuntu-xdk-qa-code-coverage:
ctest -V -S CI/main_qa.cmake
-DIMAGE_NAME:string=ubuntu-18.04-llvm-qa
-DQA:BOOL=ON
-
ls -lh build/cov_data
-
gcovr -x -o build/coverage_report.xml build/cov_data
-
gcovr -x -o build/coverage_report.xml -r . --gcov-executable="llvm-cov gcov" build
-
saxon-xslt -o build/ctest_report.xml
build/Testing/`head -n 1 build/Testing/TAG`/Test.xml
CI/ctest2junit.xsl
...
...
CI/ubuntu-18.04-llvm-qa.cmake
View file @
d2b3a5d4
...
...
@@ -23,20 +23,9 @@
set
(
site_option
"CMAKE_C_COMPILER:STRING=clang
CMAKE_CXX_COMPILER:STRING=clang++
CMAKE_C_FLAGS:STRING=--coverage
CMAKE_CXX_FLAGS:STRING=--coverage
CMAKE_C_FLAGS:STRING=--coverage
-fprofile-exclude-files="
^/usr/include/.*$;.*/xdk/include/.*$
"
CMAKE_CXX_FLAGS:STRING=--coverage
-fprofile-exclude-files="
^/usr/include/.*$;.*/xdk/include/.*$
"
CMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=lld
CMAKE_MODULE_LINKER_FLAGS:STRING=-fuse-ld=lld
CMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=lld
"
)
# handle gcov setup
set
(
COVERAGE_OUTPUT_DIR
"
${
CTEST_BINARY_DIRECTORY
}
/cov_data"
)
file
(
MAKE_DIRECTORY
"
${
COVERAGE_OUTPUT_DIR
}
"
)
string
(
REGEX MATCHALL
"/[^/]"
_slash_matches
"
${
COVERAGE_OUTPUT_DIR
}
"
)
list
(
LENGTH _slash_matches COVERAGE_PREFIX_STRIP
)
set
(
ENV{GCOV_PREFIX}
"
${
COVERAGE_OUTPUT_DIR
}
"
)
set
(
ENV{GCOV_PREFIX_STRIP}
"
${
COVERAGE_PREFIX_STRIP
}
"
)
message
(
"GCOV_PREFIX : $ENV{GCOV_PREFIX}"
)
message
(
"GCOV_PREFIX_STRIP : $ENV{GCOV_PREFIX_STRIP}"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment