Skip to content
Snippets Groups Projects

Init rats cicd

Merged Severin Sprenger requested to merge InitRatsCICD into main
1 file
+ 16
1
Compare changes
  • Side-by-side
  • Inline
+ 16
1
stages:
- test
lint-job:
Static code analysis:
image: git.sespra.ch:5050/bakxy/ubuntucppcheck:latest
stage: test
script:
- rm Template/ -rf
- cppcheck --xml-version=2 --enable=all --inline-suppr --suppress=missingIncludeSystem . 2> cppcheck-result.xml
- cppcheck_junit cppcheck-result.xml cppcheck-junit.xml
artifacts:
@@ -13,3 +14,17 @@ lint-job:
- cppcheck-junit.xml
reports:
junit: cppcheck-junit.xml
RATS analysis:
image: git.sespra.ch:5050/bakxy/ubuntucppcheck:latest
stage: test
script:
- rm Template/ -rf
- rats -l c --xml **/* > rats-output.xml
- RatsToJunit rats-output.xml rats-output-junit.xml
artifacts:
when: always
paths:
- rats-output-junit.xml
reports:
junit: rats-output-junit.xml
Loading