Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
pipelines
Commits
bd537ea3
Commit
bd537ea3
authored
Oct 06, 2021
by
Tigran Mkrtchyan
☕
Browse files
cta: add cppcheck report generation
parent
58260d85
Changes
1
Show whitespace changes
Inline
Side-by-side
cta-build.yml
View file @
bd537ea3
...
...
@@ -2,7 +2,8 @@ stages:
-
build:srpm
-
build:rpm
-
test:install
-
analysis
-
analysis:check
-
analysis:report
before_script
:
-
export CTA_BUILD_ID=${CI_PIPELINE_ID}git${CI_COMMIT_SHA:0:8}
...
...
@@ -82,10 +83,26 @@ test_install:
-
yum -y install -x cta-migration\* build_rpm/RPM/RPMS/x86_64/cta-*
cppcheck
:
stage
:
analysis
stage
:
analysis
:check
image
:
name
:
neszt/cppcheck-docker
entrypoint
:
[
"
/usr/bin/env"
]
script
:
-
cppcheck .
-
cppcheck --xml --enable=warning,style,performance . 2> cppcheck_out.xml
artifacts
:
expire_in
:
2 days
paths
:
-
cppcheck_out.xml
# based on https://gitlab.com/ahogen/cppcheck-codequality
cppcheck_report
:
stage
:
analysis:report
image
:
centos:7
script
:
-
yum -y install python3-pip
-
python3 -m pip install -U cppcheck_codequality
-
cppcheck-codequality --input-file=cppcheck_out.xml --output-file=cppcheck.json
artifacts
:
reports
:
codequality
:
cppcheck.json
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment