show the logs if tests fail

This commit is contained in:
andy5995
2019-07-24 13:30:10 -05:00
parent 50e7fff0f3
commit 57e79e1d0b

View File

@@ -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