Skip to content

Commit

Permalink
travis,tests: run cppcheck only if it exists
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
commodo committed Jul 13, 2017
1 parent 9d47ae8 commit effab3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit effab3f

Please sign in to comment.