show the logs if tests fail
This commit is contained in:
1 parent
50e7fff0f3
commit
57e79e1d0b
1 file changed
+3
-4
+3
-4
@@ -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