From 95a07d208a77f7c2cc13280fd47b6626b789c604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Basl=C3=A9?= Date: Wed, 13 Jun 2018 18:34:46 +0200 Subject: [PATCH] [build] Actively avoid travis "no output" timeout for 15min This is done by having an echo on the background with 3x5min sleeps. The echo is killed if the rest of the travis_script takes less time to complete. Solution inspired from this issue comment while looking at travis_wait: https://github.com/travis-ci/travis-ci/issues/4190#issuecomment-353342526 --- travis-build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/travis-build.sh b/travis-build.sh index 27fb0891c6..41328ce940 100755 --- a/travis-build.sh +++ b/travis-build.sh @@ -2,6 +2,12 @@ set -ev +for i in 1 2 3 +do + sleep 300; + echo "=====[ $((i * 5))min, still running ]====="; +done & + if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then COMMIT_RANGE="FETCH_HEAD..$TRAVIS_BRANCH" echo "travis PR #$TRAVIS_PULL_REQUEST build, looking at files in $COMMIT_RANGE" @@ -39,4 +45,6 @@ else fi fi +kill %1 + exit 0;