From: Alexandru Ardelean Date: Mon, 10 Jul 2017 14:47:00 +0000 (+0300) Subject: travis,tests: run cppcheck only if it exists X-Git-Tag: json-c-0.13-20171207~72^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=effab3f91ab30eae502e43eb0c46e2ff85f7178c;p=thirdparty%2Fjson-c.git travis,tests: run cppcheck only if it exists ugh... seems cppcheck is not packaged for OS X And `set -e` exposes this. And also `cppcheck` seems to exit with non-zero exit codes by default [even if errs found]. Signed-off-by: Alexandru Ardelean --- diff --git a/.travis.yml b/.travis.yml index 7aed15da..1471983e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,4 +29,4 @@ script: after_success: - make check - - cppcheck --quiet *.h *.c tests/ + - if type cppcheck &> /dev/null ; then cppcheck --error-exitcode=1 --quiet *.h *.c tests/ ; fi