diff --git a/.travis.sh b/.travis.sh index d91e7215..da8cdc30 100755 --- a/.travis.sh +++ b/.travis.sh @@ -56,6 +56,8 @@ elif [[ ${MODE} = cmake-oos ]]; then make all test make DESTDIR="${PWD}"/ROOT install find ROOT -printf "%P\n" | sort +elif [[ ${MODE} = cppcheck ]]; then + cppcheck --quiet --error-exitcode=1 . else ./qa.sh fi diff --git a/.travis.yml b/.travis.yml index 618d1d05..9a5b8a8b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,7 @@ env: - MODE=cmake-oos - MODE=distcheck - MODE=qa-sh QA_COMPILER=clang CC=clang CXX=clang++ LD=clang++ QA_SANITIZER=address + - MODE=cppcheck matrix: include: @@ -51,6 +52,7 @@ addons: - dos2unix - lzip - rpm + - cppcheck script: - ./.travis.sh diff --git a/Brewfile b/Brewfile index 05b65fd5..98f05e47 100644 --- a/Brewfile +++ b/Brewfile @@ -11,3 +11,4 @@ brew "libtool" brew "lzip" brew "m4" brew "rpm" +brew "cppcheck"