Skip to content

Commit

Permalink
Prevent timeout on travis integration tests. (#651)
Browse files Browse the repository at this point in the history
Add a script in travis to output a dot every 10 minute during
and integration test run to prevent travis timeout.

Co-authored-by: Rick Harding <rharding@mitechie.com>
  • Loading branch information
TheRealFalcon and mitechie committed Nov 5, 2020
1 parent c86283f commit b542ce7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,16 @@ matrix:
fi
# Use sudo to get a new shell where we're in the sbuild group
- sudo -E su $USER -c 'sbuild --nolog --no-run-lintian --verbose --dist=xenial cloud-init_*.dsc'
- sg lxd -c 'CLOUD_INIT_IMAGE_SOURCE="$(ls *.deb)" tox -e integration-tests'
- sg lxd -c 'CLOUD_INIT_IMAGE_SOURCE="$(ls *.deb)" tox -e integration-tests' &
- |
SECONDS=0
while [ -e /proc/$! ]; do
if [ "$SECONDS" -gt "570" ]; then
echo -n '.'
SECONDS=0
fi
sleep 10
done
- python: 3.5
env:
TOXENV=xenial
Expand Down

0 comments on commit b542ce7

Please sign in to comment.