Skip to content

Commit a061f94

Browse files
author
matthias_schaub
committed
Substitude travis wait with custom funtion in deploy.sh
1 parent 33916ba commit a061f94

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ after_success:
5454
deploy:
5555
provider: script
5656
# Extent waiting time of Travis for deploy to to finish
57-
script: travis_wait 20 bash deploy.sh
57+
script: bash deploy.sh
5858
on:
5959
branch: dev

deploy.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
#!/bin/bash
22
# Deploy to dev server.
33
# This script is called by Travis.
4+
5+
function bell() {
6+
while true; do
7+
echo -e "\a"
8+
sleep 60
9+
done
10+
}
11+
bell &
12+
413
ansible-playbook -i ansible/inventory.yml ansible/playbook.yml
14+
15+
exit $?

0 commit comments

Comments
 (0)