2016-04-28 17:50:03 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2017-03-02 00:22:24 -08:00
|
|
|
set -u -e -o pipefail
|
2016-04-28 17:50:03 -07:00
|
|
|
|
|
|
|
# Setup environment
|
2017-03-05 01:49:10 -08:00
|
|
|
readonly thisDir=$(cd $(dirname $0); pwd)
|
|
|
|
source ${thisDir}/_travis-fold.sh
|
|
|
|
|
|
|
|
|
|
|
|
# If the previous commands in the `script` section of .travis.yaml failed, then abort.
|
|
|
|
# The variable is not set in early stages of the build, so we default to 0 there.
|
|
|
|
# https://docs.travis-ci.com/user/environment-variables/
|
|
|
|
if [[ ${TRAVIS_TEST_RESULT=0} == 1 ]]; then
|
|
|
|
exit 1;
|
|
|
|
fi
|
2016-04-28 17:50:03 -07:00
|
|
|
|
|
|
|
|
2017-03-02 00:22:24 -08:00
|
|
|
case ${CI_MODE} in
|
|
|
|
js)
|
2017-03-05 01:49:10 -08:00
|
|
|
${thisDir}/test-js.sh
|
2017-03-02 00:22:24 -08:00
|
|
|
;;
|
|
|
|
e2e)
|
2017-03-05 01:49:10 -08:00
|
|
|
${thisDir}/test-e2e.sh
|
2017-03-02 00:22:24 -08:00
|
|
|
;;
|
2017-03-14 17:11:39 -07:00
|
|
|
e2e_2)
|
|
|
|
${thisDir}/test-e2e-2.sh
|
|
|
|
;;
|
2017-03-02 00:22:24 -08:00
|
|
|
saucelabs_required)
|
2017-03-05 01:49:10 -08:00
|
|
|
${thisDir}/test-saucelabs.sh
|
2017-03-02 00:22:24 -08:00
|
|
|
;;
|
|
|
|
browserstack_required)
|
2017-03-05 01:49:10 -08:00
|
|
|
${thisDir}/test-browserstack.sh
|
2017-03-02 00:22:24 -08:00
|
|
|
;;
|
|
|
|
saucelabs_optional)
|
2017-03-05 01:49:10 -08:00
|
|
|
${thisDir}/test-saucelabs.sh
|
2017-03-02 00:22:24 -08:00
|
|
|
;;
|
|
|
|
browserstack_optional)
|
2017-03-05 01:49:10 -08:00
|
|
|
${thisDir}/test-browserstack.sh
|
2017-03-02 00:22:24 -08:00
|
|
|
;;
|
2017-07-28 11:57:44 +01:00
|
|
|
aio_tools_test)
|
|
|
|
${thisDir}/test-aio-tools.sh
|
2017-03-02 00:22:24 -08:00
|
|
|
;;
|
|
|
|
aio)
|
2017-03-05 01:49:10 -08:00
|
|
|
${thisDir}/test-aio.sh
|
2017-03-02 00:22:24 -08:00
|
|
|
;;
|
2017-04-13 22:35:13 +01:00
|
|
|
aio_e2e)
|
|
|
|
${thisDir}/test-aio-e2e.sh
|
|
|
|
;;
|
2017-07-20 09:40:40 -07:00
|
|
|
bazel)
|
|
|
|
${thisDir}/test-bazel.sh
|
|
|
|
;;
|
2017-03-02 00:22:24 -08:00
|
|
|
esac
|