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-07 14:04:30 -05:00
|
|
|
TRAVIS=${TRAVIS:-}
|
|
|
|
CI_MODE=${CI_MODE:-}
|
|
|
|
|
2017-03-05 04:49:10 -05:00
|
|
|
|
2016-04-28 20:50:03 -04:00
|
|
|
|
|
|
|
mkdir -p ${LOGS_DIR}
|
|
|
|
|
|
|
|
|
|
|
|
# Install Sauce Connect
|
2016-05-09 19:47:26 -04:00
|
|
|
if [[ ${TRAVIS}] && (${CI_MODE} == "saucelabs_required" || ${CI_MODE} == "saucelabs_optional") ]]; then
|
2017-03-02 03:22:24 -05:00
|
|
|
travisFoldStart "install-sauceConnect"
|
2017-03-05 04:49:10 -05:00
|
|
|
(
|
|
|
|
${thisDir}/../sauce/sauce_connect_setup.sh
|
|
|
|
)
|
2017-03-02 03:22:24 -05:00
|
|
|
travisFoldEnd "install-sauceConnect"
|
2016-04-28 20:50:03 -04:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Install BrowserStack Tunnel
|
2016-05-09 19:47:26 -04:00
|
|
|
if [[ ${TRAVIS} && (${CI_MODE} == "browserstack_required" || ${CI_MODE} == "browserstack_optional") ]]; then
|
2017-03-02 03:22:24 -05:00
|
|
|
travisFoldStart "install-browserstack"
|
2017-03-05 04:49:10 -05:00
|
|
|
(
|
|
|
|
${thisDir}/../browserstack/start_tunnel.sh
|
|
|
|
)
|
2017-03-02 03:22:24 -05:00
|
|
|
travisFoldEnd "install-browserstack"
|
2016-04-28 20:50:03 -04:00
|
|
|
fi
|
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
# Print return arrows as a log separator
|
|
|
|
travisFoldReturnArrows
|