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

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
build(travis): gracefully shut down the sauce connect tunnel after th…
…e tests are done running

This is to prevent tunnel leaks which cause us to run out of allocated tunnels.
  • Loading branch information
IgorMinar committed Sep 23, 2015
commit 67cf3f1d063b65a5e0b57ce9c426dab156df3e6d
6 changes: 5 additions & 1 deletion scripts/ci/after-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
set -e -o pipefail

echo '*******************'
echo '** AFTER_SUCCESS **'
echo '** AFTER_SCRIPT **'
echo '*******************'

if [ "$MODE" = "saucelabs" ]; then
./scripts/sauce/sauce_connect_teardown.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it worth introducing a new file for this? why not put the killall command here?

fi


echo '---------------------'
echo '-- WAIT FOR OTHERS --'
Expand Down
7 changes: 7 additions & 0 deletions scripts/sauce/sauce_connect_teardown.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -e -o pipefail


echo "Shutting down Sauce Connect tunnel"
killall sc