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

Update .gitlab-ci.yml file

parent 760f14d7
Branches bugfix/change-include-for-ci
No related tags found
1 merge request!1321Add Code Quality analysis in the CI
Pipeline #66710 canceled
......@@ -94,11 +94,14 @@ codechecker:
- .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
- 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