Commit bd537ea3 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

cta: add cppcheck report generation

parent 58260d85
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment