From 9ae761b1c8d1eff1d33e469b79f0abe4cad5ab0e Mon Sep 17 00:00:00 2001 From: Abhinav Anil Sharma Date: Wed, 1 Jul 2020 23:52:02 +0530 Subject: [PATCH] i#4223: Fix truncated log issue for MacOS on Travis (#4345) Sleep for 10 seconds after script run/failure on MacOS to allow some time for Travis to capture the complete log. It was used as a workaround also at travis-ci/travis-ci#6018. Fixes: #4223 --- .travis.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.travis.yml b/.travis.yml index 602581199e8..635bd352fdc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -107,6 +107,17 @@ jobs: # gcc on Travis claims to not be CMAKE_COMPILER_IS_GNUCC so we only run clang. compiler: clang env: DYNAMORIO_CROSS_AARCHXX_LINUX_ONLY=no DEPLOY=no EXTRA_ARGS=64_only + after_script: + # Travis logs for OSX builds are truncated because the VM exits early. + # Sleep to allow Travis to capture complete log. More context on i#4223. + - sleep 10 + - echo "--end--" + after_failure: + # Travis logs for OSX builds are truncated because the VM exits early. + # Sleep to allow Travis to capture complete log. More context on i#4223. + - sleep 10 + - echo "--end--" + # AArch64 drdecode and drmemtrace on x86: - if: type != cron AND env(TRAVIS_EVENT_TYPE) != cron os: linux @@ -184,6 +195,12 @@ install: script: - travis_wait 45 suite/runsuite_wrapper.pl travis $EXTRA_ARGS +after_script: + - echo "--end--" + +after_failure: + - echo "--end--" + # We switch to package.cmake for these builds in runsuite_wrapper.pl by looking # for $TRAVIS_EVENT_TYPE=="cron". # The before_deploy commands are run before each deployer, so they are also