Skip to content
Snippets Groups Projects
Commit 760f14d7 authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Try CI config locally

parent 04300fa6
No related branches found
No related tags found
1 merge request!1321Add Code Quality analysis in the CI
Pipeline #66708 canceled
......@@ -81,3 +81,24 @@ reuse:
before_script: ""
script:
- reuse lint
codechecker:
extends: .common
image: registry.dune-project.org/docker/ci/debian:11
variables:
DUNECI_TOOLCHAIN: clang-11-20
CMAKE_EXPORT_COMPILE_COMMANDS: "ON"
DUNECI_CONFIGURE_ONLY: "ON"
rules:
- exists:
- .codechecker/config.json
script:
- duneci-standard-test
source /duneci/venv/bin/activate
CodeChecker analyze build-cmake/compile_commands.json --config .codechecker/config.json -o ./reports
CodeChecker parse --config .codechecker/config.json --trim-path-prefix $PWD -e codeclimate ./reports > ./reports/gl-code-quality-report.json
report=$(cat ./reports/gl-code-quality-report.json)
[[ "$report" == "[]" ]] && exit 1
artifacts:
reports:
codequality: reports/gl-code-quality-report.json
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