From effab3f91ab30eae502e43eb0c46e2ff85f7178c Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Mon, 10 Jul 2017 17:47:00 +0300 Subject: [PATCH] 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 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3