Skip to content

Commit

Permalink
i#4223: Fix truncated log issue for MacOS on Travis (#4345)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
abhinav92003 authored Jul 1, 2020
1 parent 5fa9fae commit 9ae761b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9ae761b

Please sign in to comment.