mirror of
https://github.com/json-c/json-c.git
synced 2026-03-20 13:39:06 +08:00
show the logs if tests fail
This commit is contained in:
@@ -29,10 +29,9 @@ script:
|
||||
- make
|
||||
|
||||
after_success:
|
||||
- make check
|
||||
- result=$?
|
||||
- if type cppcheck &> /dev/null ; then cppcheck --error-exitcode=1 --quiet *.h *.c tests/ ; fi
|
||||
- make check ; result=$?
|
||||
- if [ $result != 0 ]; then
|
||||
cat tests/*.log;
|
||||
exit $result;
|
||||
fi
|
||||
- if type cppcheck &> /dev/null ; then cppcheck --error-exitcode=1 --quiet *.h *.c tests/ ; fi
|
||||
- exit $result
|
||||
|
||||
Reference in New Issue
Block a user