8000 Add keep alive to Travis deploy · flummer/circuitpython@6785e02 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6785e02

Browse files
committed
Add keep alive to Travis deploy
Some deploys take over 10 minutes and Travis kills the job. This workaround is from travis-ci/dpl#568
1 parent ecf2442 commit 6785e02

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ addons:
3333
- $(ls -d1 bin/*/*/* | tr "\n" ":")
3434
target_paths: /
3535

36+
# Some deploy jobs take over 10 minutes so use this keep alive hack to make sure Travis doesn't kill us.
37+
before_deploy: |
38+
function keep_alive() {
39+
while true; do
40+
echo -en "\a"
41+
sleep 5
42+
done
43+
}
44+
keep_alive &
45+
3646
deploy:
3747
provider: releases
3848
api_key:

0 commit comments

Comments
 (0)
0