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
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
# override test failure so that we perform this file regardless and not abort in env.sh
|
|
|
|
TRAVIS_TEST_RESULT=0
|
2016-04-28 20:50:03 -04:00
|
|
|
|
|
|
|
# Setup environment
|
2017-03-02 03:22:24 -05:00
|
|
|
source ${TRAVIS_BUILD_DIR}/scripts/ci-lite/_travis_fold.sh
|
|
|
|
source ${TRAVIS_BUILD_DIR}/scripts/ci-lite/env.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
|