Skip to content
Snippets Groups Projects
Commit 01c53099 authored by Soeren Peters's avatar Soeren Peters
Browse files

Add cppcheck install script.

parent ea8a8a25
No related branches found
No related tags found
1 merge request!237Adds Ubuntu 22_04 image.
......@@ -438,8 +438,8 @@ include_what_you_use_clang_15:
- cd /tmp
- git clone https://github.com/include-what-you-use/include-what-you-use.git
- cd include-what-you-use
- git checkout clang_10
- cmake . -DCMAKE_PREFIX_PATH=/usr/lib/llvm-10
- git checkout clang_15
- cmake . -DCMAKE_PREFIX_PATH=/usr/lib/llvm-15
- make
- export PATH+=:$(pwd)/bin
......@@ -471,6 +471,8 @@ cppcheck:
needs: []
before_script:
- chmod +x utilities/install-cppcheck.sh
- ./utilities/install-cppcheck.sh
- cppcheck --version
script:
......@@ -493,10 +495,6 @@ lizard:
needs: []
before_script:
- cd /tmp
- git clone https://github.com/terryyin/lizard.git
- cd lizard
- python3 setup.py install
- lizard --version
script:
......@@ -560,7 +558,7 @@ clang-tidy:
allow_failure: true
before_script:
- run-clang-tidy -h
- run-clang-tidy-15 -h
script:
- mkdir -p $CI_PROJECT_DIR/build
......
......@@ -43,5 +43,6 @@ RUN apt-get update && \
numpy \
ansible \
'jinja2<3.1' \
gcovr==6.0
gcovr==6.0 \
lizard==1.17.10
#!/usr/bin/env bash
set -e
cd /tmp
git clone https://github.com/danmar/cppcheck.git
cd cppcheck
git checkout 2.10.3
make MATCHCOMPILER=yes FILESDIR=/usr/share/cppcheck HAVE_RULES=yes CXXFLAGS="-O2 -DNDEBUG -Wall -Wno-sign-compare -Wno-unused-function" install
cd /tmp
rm -rf /tmp/cppcheck
ldconfig
cppcheck --version
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment