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
This commit is contained in:
Scott Shawcroft 2019-06-26 11:14:45 -07:00
parent ecf24420d5
commit 6785e0259f
No known key found for this signature in database
GPG Key ID: 9349BC7E64B1921E
1 changed files with 10 additions and 0 deletions

View File

@ -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: