From: Claudio André Date: Thu, 25 May 2017 05:19:45 +0000 (-0300) Subject: CI: show the log in case of failure X-Git-Tag: v3.4.0-rc1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e988b23563a3a3d21d551b4f4d667f6e3d738f4;p=thirdparty%2Flibvirt.git CI: show the log in case of failure Disclose the content of the 'test-suite.log' file (if available) in case of failures inside Travis-CI. This is needed to understand what happened and to provide hints about the proper fix (if applicable). --- diff --git a/.travis.yml b/.travis.yml index 266ffff104..5a3e765106 100644 --- a/.travis.yml +++ b/.travis.yml @@ -83,3 +83,11 @@ matrix: # many unit tests fail & so does syntax-check, so skip for now # one day we must fix it though.... - make -j3 + +after_failure: + - echo '============================================================================' + - 'if [ -f $(pwd)/tests/test-suite.log ]; then + cat $(pwd)/tests/test-suite.log; + else + echo "=== NO LOG FILE FOUND ==="; + fi'