Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b609fb

Browse files
committed
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 angular#4329
1 parent 8427863 commit 3b609fb

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

scripts/ci/after-script.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
set -e -o pipefail
33

44
echo '*******************'
5-
echo '** AFTER_SUCCESS **'
5+
echo '** AFTER_SCRIPT **'
66
echo '*******************'
77

8+
if [ "$MODE" = "saucelabs" ]; then
9+
./scripts/sauce/sauce_connect_teardown.sh
10+
fi
11+
812

913
echo '---------------------'
1014
echo '-- WAIT FOR OTHERS --'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -e -o pipefail
4+
5+
6+
echo "Shutting down Sauce Connect tunnel"
7+
killall sc

0 commit comments

Comments
 (0)