Skip to content

Commit faec135

Browse files
committed
new way of waiting for deploy
1 parent c4fc1af commit faec135

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.travis.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,18 @@ notifications:
4747
jobs:
4848
include:
4949
- stage: deploy
50-
script: travis_wait 20 grunt package
50+
script: grunt package
5151
before_script: skip
5252
after_script: echo "after script"
53+
# keep the process alive until the deploy is completed
54+
before_deploy: |
55+
function keep_alive() {
56+
while true; do
57+
echo -en "\a"
58+
sleep 5
59+
done
60+
}
61+
keep_alive &
5362
after_deploy: echo "after deploy"
5463
env:
5564
- JOB=deploy

0 commit comments

Comments
 (0)