diff --git a/.travis.yml b/.travis.yml index 1cff7d8..012209c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,5 +24,5 @@ install: - printf '[defaults]\nroles_path=../' >ansible.cfg script: - - travis_wait 30 . tests/test.sh + - . tests/travis_test.sh diff --git a/tests/travis_test.sh b/tests/travis_test.sh new file mode 100644 index 0000000..df58586 --- /dev/null +++ b/tests/travis_test.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +# https://github.com/travis-ci/travis-ci/issues/4190 + +. tests/test.sh & + +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