mirror of
https://github.com/json-c/json-c.git
synced 2026-04-07 14:29:06 +08:00
@@ -8,6 +8,7 @@ addons:
|
|||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- cppcheck
|
- cppcheck
|
||||||
|
- valgrind
|
||||||
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
@@ -29,4 +30,9 @@ script:
|
|||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- make check
|
- make check
|
||||||
|
- result=$?
|
||||||
- if type cppcheck &> /dev/null ; then cppcheck --error-exitcode=1 --quiet *.h *.c tests/ ; fi
|
- 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