Browse Source

static analysis return correctly

quality-test
Hendrik Langer 5 years ago
parent
commit
c5d6e25587
  1. 8
      .gitlab-ci.yml

8
.gitlab-ci.yml

@ -55,15 +55,19 @@ static_analysis:
# - cppcheck --enable=all --check-config src # - cppcheck --enable=all --check-config src
- cppcheck --error-exitcode=1 src 2>&1 | tee build/cppcheck-err.txt - cppcheck --error-exitcode=1 src 2>&1 | tee build/cppcheck-err.txt
- cppcheck --xml src 2> build/cppcheck-result.xml - cppcheck --xml src 2> build/cppcheck-result.xml
- cppcheck_junit build/cppcheck-result.xml build/cppcheck-junit.xml
- script/build_compile_commands.py - script/build_compile_commands.py
- run-clang-tidy -fix -export-fixes=build/clang-tidy-fixes.yml src || true - run-clang-tidy -fix -export-fixes=build/clang-tidy-fixes.yml src
after_script:
- cppcheck_junit build/cppcheck-result.xml build/cppcheck-junit.xml
- cat "build/clang-tidy-fixes.yml" | script/clang-tidy-to-junit.py src >"build/clang-tidy-junit.xml" - cat "build/clang-tidy-fixes.yml" | script/clang-tidy-to-junit.py src >"build/clang-tidy-junit.xml"
artifacts: artifacts:
reports: reports:
junit: junit:
- build/clang-tidy-junit.xml - build/clang-tidy-junit.xml
- build/cppcheck-junit.xml - build/cppcheck-junit.xml
paths:
- build/clang-tidy-junit.xml
- build/cppcheck-junit.xml
deploy: deploy:
stage: deploy stage: deploy

Loading…
Cancel
Save