Commit 5ecc3689 authored by Jehan's avatar Jehan

gitlab-ci: add an analysis stage with cppcheck code analysis stage.

As contributed by Rafał @qarmin in a Gitlab comment. See #5002.
parent 15bedc9b
Pipeline #174303 failed with stages
in 23 minutes and 28 seconds
......@@ -3,6 +3,7 @@ image: debian:testing
stages:
- dependencies
- gimp
- analysis
variables:
GIT_DEPTH: "1"
......@@ -341,3 +342,19 @@ gimp-win32:
paths:
- _build/
- gimp-prefix/
cppcheck:
stage: analysis
before_script:
- apt-get update
- apt-get install -y cppcheck
script:
- cppcheck -q -j8 --enable=all --force --output-file=cppcheck.xml --xml --xml-version=2 .
- mkdir report
- cppcheck-htmlreport --source-dir=. --title=gimp --file=cppcheck.xml --report-dir=report
artifacts:
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
expire_in: 1 week
when: always
paths:
- report
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment