From 57e79e1d0b025e85d4bf9284b375a1a9439db4c2 Mon Sep 17 00:00:00 2001 From: andy5995 Date: Wed, 24 Jul 2019 13:30:10 -0500 Subject: [PATCH] show the logs if tests fail --- .travis.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index b64c5a4..91ee289 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 -- 2.49.0