|
|
@ -51,15 +51,17 @@ static_analysis: |
|
|
|
- pio init --ide atom |
|
|
|
- pip install cppcheck-junit |
|
|
|
- mkdir -p build |
|
|
|
- pip install junit2html |
|
|
|
script: |
|
|
|
# - cppcheck --enable=all --check-config src |
|
|
|
- cppcheck --error-exitcode=1 src 2>&1 | tee build/cppcheck-err.txt |
|
|
|
- cppcheck --xml src 2> build/cppcheck-result.xml |
|
|
|
- script/build_compile_commands.py |
|
|
|
- cppcheck --error-exitcode=1 --enable=all --check-config --project=compile_commands.json src 2>&1 | tee build/cppcheck-err.txt |
|
|
|
- cppcheck --xml --enable=all --check-config --project=compile_commands.json src 2> build/cppcheck-result.xml |
|
|
|
- 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" |
|
|
|
- junit2html --summary-matrix build/build/clang-tidy-junit.xml |
|
|
|
- junit2html --summary-matrix build/cppcheck-junit.xml |
|
|
|
artifacts: |
|
|
|
reports: |
|
|
|
junit: |
|
|
|