travis-ci add cppcheck

This commit is contained in:
Daniel Agar
2017-06-02 19:35:18 -04:00
parent 560bfd2b00
commit 2e0ed3b47b
2 changed files with 15 additions and 5 deletions
+6 -3
View File
@@ -289,6 +289,9 @@ s3put_px4_metadata: px4_metadata
s3put_scan-build: scan-build
$(SRC_DIR)/Tools/s3put.sh `find build_scan-build -mindepth 1 -maxdepth 1 -type d`/
s3put_cppcheck: cppcheck
$(SRC_DIR)/Tools/s3put.sh build_cppcheck-htmlreport/
# Astyle
# --------------------------------------------------------------------
.PHONY: check_format format
@@ -353,9 +356,9 @@ clang-tidy-fix: posix_sitl_default-clang
clang-tidy-quiet: posix_sitl_default-clang
@cd build_posix_sitl_default-clang && $(SRC_DIR)/Tools/run-clang-tidy.py -header-filter=".*\.hpp" -j$(j) -p .
cppcheck: posix_sitl_default-clang
@cppcheck --enable=all --project=build_posix_sitl_default-clang/compile_commands.json --xml-version=2 2> cppcheck-result.xml
@cppcheck-htmlreport --file=cppcheck-result.xml --report-dir=build_cppcheck-htmlreport --source-dir=$(SRC_DIR)/src/
cppcheck: posix_sitl_default
@cppcheck --enable=all --std=c++11 --std=c99 --std=posix --project=build_posix_sitl_default/compile_commands.json --xml-version=2 2> cppcheck-result.xml
@cppcheck-htmlreport --source-encoding=ascii --file=cppcheck-result.xml --report-dir=build_cppcheck-htmlreport --source-dir=$(SRC_DIR)/src/
# Cleanup
# --------------------------------------------------------------------