summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Falcon <TheRealFalcon@users.noreply.github.com>2020-11-05 14:24:47 -0600
committerGitHub <noreply@github.com>2020-11-05 15:24:47 -0500
commitb542ce7a7c530fbfa874dd780294628b62fe092a (patch)
tree9d0e68728543faeab76b455dfe37e101c4ecad9c
parentc86283f0d9fe8a2634dc3c47727e6218fdaf25e2 (diff)
downloadcloud-init-git-b542ce7a7c530fbfa874dd780294628b62fe092a.tar.gz
Prevent timeout on travis integration tests. (#651)
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>
-rw-r--r--.travis.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 87841424..496c1a81 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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