Commit 6833c8c3 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

ci: enable cppcheck

parent acb16cac
......@@ -49,3 +49,27 @@ test:unit:
image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
tags:
- docker
test:cppcheck:
stage: test
script:
- cppcheck -j $(nproc)
--max-configs=32
--error-exitcode=1
--quiet
--inline-suppr
--enable=warning,performance,portability,information,missingInclude
--std=c++11
-I include
lib/
tests/unit/ | tee cppcheck.log
image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
dependencies:
- build:source
tags:
- docker
artifacts:
when: on_failure
paths:
- cppcheck.log
expose_as: cppcheck
......@@ -46,6 +46,7 @@ LABEL \
RUN dnf -y install \
gcc gcc-c++ \
make cmake \
cppcheck \
pkgconfig git curl tar
# Dependencies
......
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