From: andy5995 Date: Wed, 24 Jul 2019 18:30:10 +0000 (-0500) Subject: show the logs if tests fail X-Git-Tag: json-c-0.14-20200419~91^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57e79e1d0b025e85d4bf9284b375a1a9439db4c2;p=thirdparty%2Fjson-c.git show the logs if tests fail --- diff --git a/.travis.yml b/.travis.yml index b64c5a40..91ee2891 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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