diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-06-26 11:14:45 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2019-06-26 11:14:45 -0700 |
| commit | 6785e0259faee64b823eeae32ee4e4883eaf8b81 (patch) | |
| tree | 7f77b3d95f62b8db6041d1cb70de6f950bd57828 | |
| parent | ecf24420d582d0cf754583800922a9a2645b281f (diff) | |
Add keep alive to Travis deploy
Some deploys take over 10 minutes and Travis kills the job. This
workaround is from https://github.com/travis-ci/dpl/issues/568
| -rwxr-xr-x | .travis.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 1702089c3..b2fb01698 100755 --- a/.travis.yml +++ b/.travis.yml @@ -33,6 +33,16 @@ addons: - $(ls -d1 bin/*/*/* | tr "\n" ":") target_paths: / +# Some deploy jobs take over 10 minutes so use this keep alive hack to make sure Travis doesn't kill us. +before_deploy: | + function keep_alive() { + while true; do + echo -en "\a" + sleep 5 + done + } + keep_alive & + deploy: provider: releases api_key: |
