mirror of
https://github.com/json-c/json-c.git
synced 2026-04-04 04:49:06 +08:00
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 <ardeleanalex@gmail.com>
This commit is contained in:
@@ -29,4 +29,4 @@ script:
|
|||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- make check
|
- make check
|
||||||
- cppcheck --quiet *.h *.c tests/
|
- if type cppcheck &> /dev/null ; then cppcheck --error-exitcode=1 --quiet *.h *.c tests/ ; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user