build(travis): gracefully shut down the sauce connect tunnel after the tests are done running

This is to prevent tunnel leaks which cause us to run out of allocated tunnels.

Closes #4329
This commit is contained in:
Igor Minar 2015-09-22 20:45:30 -07:00
parent 8427863bab
commit 3b609fbae9
2 changed files with 12 additions and 1 deletions

View File

@ -2,9 +2,13 @@
set -e -o pipefail set -e -o pipefail
echo '*******************' echo '*******************'
echo '** AFTER_SUCCESS **' echo '** AFTER_SCRIPT **'
echo '*******************' echo '*******************'
if [ "$MODE" = "saucelabs" ]; then
./scripts/sauce/sauce_connect_teardown.sh
fi
echo '---------------------' echo '---------------------'
echo '-- WAIT FOR OTHERS --' echo '-- WAIT FOR OTHERS --'

View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e -o pipefail
echo "Shutting down Sauce Connect tunnel"
killall sc