diff --git a/.travis.yml b/.travis.yml index 066c6805..dde29c69 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,7 @@ addons: - gcc-arm-embedded - libbluetooth-dev - libglu1-mesa + - cppcheck install: - wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh @@ -32,6 +33,7 @@ before_script: script: - ./scripts/checkformat_clang.sh - ./scripts/checkformat_checkpatch.sh + - ./scripts/checkstatic_cppcheck.sh - make -C src - source activate bulebule - pytest -sv diff --git a/scripts/checkstatic_cppcheck.sh b/scripts/checkstatic_cppcheck.sh new file mode 100755 index 00000000..083701ab --- /dev/null +++ b/scripts/checkstatic_cppcheck.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +root=$PWD/../ + +cd $root + +cppcheck --enable=all src/ -isrc/simulation -isrc/printf -Isrc/mmlib -Isrc --check-config --suppress=missingIncludeSystem --quiet --error-exitcode=1 + +cppcheck --enable=all src/ -isrc/simulation -isrc/printf -Isrc/mmlib -Isrc --suppress=unusedFunction --suppress=missingInclude --quiet --error-exitcode=1