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

Rely on common config file

parent d9804584
No related branches found
No related tags found
1 merge request!1321Add Code Quality analysis in the CI
Pipeline #66712 failed
......@@ -10,14 +10,6 @@ include:
ref: master
file: 'jobs/common/master.yml'
# See https://docs.gitlab.com/ee/ci/jobs/job_control.html#avoid-duplicate-pipelines
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when: never
- if: $CI_COMMIT_BRANCH
before_script:
- . /duneci/bin/duneci-init-job
......@@ -89,27 +81,3 @@ 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)
- |-
if [[ -n "$report" && "$report" != "[]" ]]; then
exit 1
fi
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