1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

ci: enable cppcheck

This commit is contained in:
Steffen Vogel 2020-09-11 15:27:13 +02:00
parent d2c7638060
commit acc5817737
2 changed files with 25 additions and 0 deletions

View file

@ -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

View file

@ -46,6 +46,7 @@ LABEL \
RUN dnf -y install \
gcc gcc-c++ \
make cmake \
cppcheck \
pkgconfig git curl tar
# Dependencies