From 954540ff22fe1f4289aa50951a3d9e898173e5da Mon Sep 17 00:00:00 2001 From: evilaliv3 Date: Fri, 8 Jan 2016 12:01:25 +0100 Subject: [PATCH] Implement custom travis_wait in order to have command output still printed on the command line --- .travis.yml | 2 +- travis.sh | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2c4c375e..2d9b42bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -57,4 +57,4 @@ matrix: before_script: - npm install -g grunt-cli script: - - travis_wait $TRAVIS_BUILD_DIR/travis.sh + - $TRAVIS_BUILD_DIR/travis.sh diff --git a/travis.sh b/travis.sh index a7f08f59..bc13c8a6 100755 --- a/travis.sh +++ b/travis.sh @@ -33,5 +33,20 @@ elif [[ $OPENPGPJSTEST =~ ^end2end-.* ]]; then echo "Testing Configuration: ${testkey}" eval $capability - grunt saucelabs + grunt saucelabs & + + # https://github.com/travis-ci/travis-ci/issues/4190 + minutes=0 + limit=30 + while kill -0 $! >/dev/null 2>&1; do + echo -n -e " \b" # never leave evidences! + + if [ $minutes == $limit ]; then + break; + fi + + minutes=$((minutes+1)) + + sleep 60 + done fi