From f899a72d45129c8530567e2f85484e37c206717e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 22 Apr 2020 15:24:24 +0200 Subject: [PATCH] Show config.log contents if configure failed This should help understanding why Qt libraries are not found under Bionic and may also be useful in case of other failures in the future. --- build/tools/travis-ci.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build/tools/travis-ci.sh b/build/tools/travis-ci.sh index 874ee26b2c..9293df833a 100755 --- a/build/tools/travis-ci.sh +++ b/build/tools/travis-ci.sh @@ -54,7 +54,14 @@ case $wxTOOLSET in ;; *) echo 'Configuring...' && echo -en 'travis_fold:start:script.configure\\r' - ./configure --disable-optimise --disable-debug_info $wxCONFIGURE_FLAGS + ./configure --disable-optimise --disable-debug_info $wxCONFIGURE_FLAGS || rc=$? + if [ $rc != 0 ]; then + echo '*** Configuring failed, contents of config.log follows: ***' + echo '-----------------------------------------------------------' + cat config.log + echo '-----------------------------------------------------------' + exit $rc + fi echo -en 'travis_fold:end:script.configure\\r' echo 'Building...' && echo -en 'travis_fold:start:script.build\\r'