Skip to content
Snippets Groups Projects
Commit 73450bc1 authored by Cyril Moineau's avatar Cyril Moineau
Browse files

[GitLabCI] Add code quality and html report for pylint + attempt at gitlab pages

parent 0a57aab0
No related branches found
No related tags found
No related merge requests found
......@@ -10,9 +10,11 @@ static_analysis:cpp:
- cppcheck-htmlreport --file=cppcheck-result.xml --report-dir=$CI_COMMIT_REF_NAME --source-dir=.
- python3 -m pip install -U cppcheck_codequality
- cppcheck-codequality --input-file=cppcheck-result.xml --output-file=cppcheck.json
- mkdir -p public/cpp
- mv $CI_COMMIT_REF_NAME public/cpp/
artifacts:
paths:
- $CI_COMMIT_REF_NAME
- public
reports:
codequality: cppcheck.json
......@@ -23,6 +25,13 @@ static_analysis:python:
allow_failure: true
script:
- pip install pylint
- pip install pylint-exit
- pylint --rcfile=.pylintrc aidge_core/ || pylint-exit $?
- pip install pylint-gitlab
- pylint --rcfile=.pylintrc --exit-zero --output-format=pylint_gitlab.GitlabCodeClimateReporter . > codeclimate.json
- pylint --rcfile=.pylintrc --exit-zero --output-format=pylint_gitlab.GitlabPagesHtmlReporter . > pylint.html
- mkdir -p public/python/$CI_COMMIT_REF_NAME
- mv pylint.html public/python/$CI_COMMIT_REF_NAME/
artifacts:
paths:
- public
reports:
codequality: codeclimate.json
\ 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