Implement custom travis_wait in order to have command output still printed on the command line
This commit is contained in:
parent
dc6f91971f
commit
954540ff22
|
@ -57,4 +57,4 @@ matrix:
|
||||||
before_script:
|
before_script:
|
||||||
- npm install -g grunt-cli
|
- npm install -g grunt-cli
|
||||||
script:
|
script:
|
||||||
- travis_wait $TRAVIS_BUILD_DIR/travis.sh
|
- $TRAVIS_BUILD_DIR/travis.sh
|
||||||
|
|
17
travis.sh
17
travis.sh
|
@ -33,5 +33,20 @@ elif [[ $OPENPGPJSTEST =~ ^end2end-.* ]]; then
|
||||||
|
|
||||||
echo "Testing Configuration: ${testkey}"
|
echo "Testing Configuration: ${testkey}"
|
||||||
eval $capability
|
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
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user