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:
parent
ecf24420d5
commit
6785e0259f
10
.travis.yml
10
.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:
|
||||
|
|
Loading…
Reference in New Issue