2015-01-08 17:20:05 -05:00
|
|
|
#!/bin/bash
|
2015-11-05 11:20:13 -05:00
|
|
|
set -ex
|
2015-01-08 17:20:05 -05:00
|
|
|
|
2015-02-13 17:59:29 -05:00
|
|
|
MODE=$1
|
|
|
|
|
2015-01-08 17:20:05 -05:00
|
|
|
echo =============================================================================
|
|
|
|
# go to project dir
|
|
|
|
SCRIPT_DIR=$(dirname $0)
|
|
|
|
cd $SCRIPT_DIR/../..
|
|
|
|
|
2015-07-29 20:00:54 -04:00
|
|
|
if [ "$MODE" = "dart_experimental" ]; then
|
2015-06-03 20:22:30 -04:00
|
|
|
${SCRIPT_DIR}/build_$MODE.sh
|
2015-12-10 08:40:00 -05:00
|
|
|
elif [[ $MODE = saucelabs* ]] ; then
|
|
|
|
${SCRIPT_DIR}/test_saucelabs.sh $MODE
|
|
|
|
elif [[ $MODE = browserstack* ]] ; then
|
|
|
|
${SCRIPT_DIR}/test_browserstack.sh $MODE
|
2015-07-29 20:00:54 -04:00
|
|
|
elif [ "$MODE" = "lint" ]; then
|
|
|
|
./node_modules/.bin/gulp static-checks
|
2015-10-30 10:34:48 -04:00
|
|
|
elif [ "$MODE" = "build_only" ]; then
|
|
|
|
${SCRIPT_DIR}/build_js.sh
|
|
|
|
${SCRIPT_DIR}/build_dart.sh
|
2015-11-20 12:59:08 -05:00
|
|
|
elif [ "$MODE" = "payload" ]; then
|
|
|
|
source ${SCRIPT_DIR}/env_dart.sh
|
|
|
|
./node_modules/.bin/gulp test.payload.dart/ci
|
2016-01-08 11:51:02 -05:00
|
|
|
./node_modules/.bin/gulp test.payload.js/ci
|
2015-06-03 20:22:30 -04:00
|
|
|
else
|
2015-07-29 20:00:54 -04:00
|
|
|
${SCRIPT_DIR}/build_$MODE.sh
|
|
|
|
${SCRIPT_DIR}/test_$MODE.sh
|
2015-06-03 20:22:30 -04:00
|
|
|
fi
|