build(travis): block travis while we are shutting down the tunnel

This is to prevent Travis from prematurely shut down the VM while we are still waiting for the sauce connect client
to tear down the tunnel.

Closes #4335
This commit is contained in:
Igor Minar 2015-09-23 09:37:04 -07:00
parent 3b609fbae9
commit 4d4d20edb9
1 changed files with 9 additions and 0 deletions

View File

@ -4,4 +4,13 @@ set -e -o pipefail
echo "Shutting down Sauce Connect tunnel"
killall sc
while [[ -n `ps -ef | grep "bin/sc" | grep -v "grep"` ]]; do
printf "."
sleep .5
done
echo ""
echo "Sauce Connect tunnel has been shut down"