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