From 5e212b32a3d120637e4b6998502476b657baa8d3 Mon Sep 17 00:00:00 2001 From: Peter Hamilton Date: Tue, 29 Jan 2019 10:12:21 -0500 Subject: [PATCH] Update the Travis CI config to output log files on test failures This change updates the Travis CI configuration file to output the contents of the PyKMIP server and SLUGS log files if: * a test failure occurred, and * the log files exist in the test environment This makes debugging server and service failures much easier in Travis CI, specifically during integration and functional test suite runs. --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 32d42b3..7206649 100644 --- a/.travis.yml +++ b/.travis.yml @@ -232,3 +232,7 @@ script: - ./.travis/run.sh after_success: - codecov +after_failure: + - if [ -f "/tmp/pykmip/server.log" ]; then cat /tmp/pykmip/server.log; fi + - if [ -f "/tmp/slugs/access.log" ]; then cat /tmp/slugs/access.log; fi + - if [ -f "/tmp/slugs/error.log" ]; then cat /tmp/slugs/error.log; fi