Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
Add travis test wrapper to prevent job timeouts caused by no output o…
Browse files Browse the repository at this point in the history
…f the script.
  • Loading branch information
janrotter committed May 1, 2016
1 parent fce38d9 commit d4212af
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ install:
- printf '[defaults]\nroles_path=../' >ansible.cfg

script:
- travis_wait 30 . tests/test.sh
- . tests/travis_test.sh

19 changes: 19 additions & 0 deletions tests/travis_test.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d4212af

Please sign in to comment.