2016-04-28 20:50:03 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
set -u -e -o pipefail
|
2016-04-28 20:50:03 -04:00
|
|
|
|
|
|
|
# Setup environment
|
2017-03-05 04:49:10 -05:00
|
|
|
readonly thisDir=$(cd $(dirname $0); pwd)
|
|
|
|
source ${thisDir}/_travis-fold.sh
|
2016-04-28 20:50:03 -04:00
|
|
|
|
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
case ${CI_MODE} in
|
|
|
|
js)
|
|
|
|
;;
|
|
|
|
saucelabs_required)
|
|
|
|
travisFoldStart "teardown.sauceConnect"
|
2016-04-28 20:50:03 -04:00
|
|
|
./scripts/sauce/sauce_connect_teardown.sh
|
2017-03-02 03:22:24 -05:00
|
|
|
travisFoldEnd "teardown.sauceConnect"
|
|
|
|
;;
|
|
|
|
browserstack_required)
|
|
|
|
travisFoldStart "teardown.browserStack"
|
2016-04-28 20:50:03 -04:00
|
|
|
./scripts/browserstack/teardown_tunnel.sh
|
2017-03-02 03:22:24 -05:00
|
|
|
travisFoldEnd "teardown.browserStack"
|
|
|
|
;;
|
|
|
|
saucelabs_optional)
|
|
|
|
travisFoldStart "teardown.sauceConnect"
|
2016-05-09 19:47:26 -04:00
|
|
|
./scripts/sauce/sauce_connect_teardown.sh
|
2017-03-02 03:22:24 -05:00
|
|
|
travisFoldEnd "teardown.sauceConnect"
|
|
|
|
;;
|
|
|
|
browserstack_optional)
|
|
|
|
travisFoldStart "teardown.browserStack"
|
2016-05-09 19:47:26 -04:00
|
|
|
./scripts/browserstack/teardown_tunnel.sh
|
2017-03-02 03:22:24 -05:00
|
|
|
travisFoldEnd "teardown.browserStack"
|
|
|
|
;;
|
|
|
|
esac
|
2016-04-28 20:50:03 -04:00
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
# Print return arrows as a log separator
|
|
|
|
travisFoldReturnArrows
|