show the logs if tests fail
This commit is contained in:
@@ -29,10 +29,9 @@ script:
|
|||||||
- make
|
- make
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- make check
|
- make check ; result=$?
|
||||||
- result=$?
|
|
||||||
- if type cppcheck &> /dev/null ; then cppcheck --error-exitcode=1 --quiet *.h *.c tests/ ; fi
|
|
||||||
- if [ $result != 0 ]; then
|
- if [ $result != 0 ]; then
|
||||||
cat tests/*.log;
|
cat tests/*.log;
|
||||||
exit $result;
|
|
||||||
fi
|
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