mirror of
https://github.com/json-c/json-c.git
synced 2026-03-21 22:19:07 +08:00
@@ -8,6 +8,7 @@ addons:
|
||||
apt:
|
||||
packages:
|
||||
- cppcheck
|
||||
- valgrind
|
||||
|
||||
os:
|
||||
- linux
|
||||
@@ -29,4 +30,9 @@ script:
|
||||
|
||||
after_success:
|
||||
- make check
|
||||
- result=$?
|
||||
- if type cppcheck &> /dev/null ; then cppcheck --error-exitcode=1 --quiet *.h *.c tests/ ; fi
|
||||
- if [ $result != 0 ]; then
|
||||
cat tests/*.log;
|
||||
exit $result;
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user