2015-01-08 17:20:05 -05:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
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-06-03 20:22:30 -04:00
|
|
|
if [ "$MODE" = "dart_experimental" ]
|
|
|
|
then
|
|
|
|
${SCRIPT_DIR}/build_$MODE.sh
|
|
|
|
else
|
2015-06-02 10:29:09 -04:00
|
|
|
if [ "$MODE" = "saucelabs" ]
|
|
|
|
then
|
|
|
|
${SCRIPT_DIR}/test_$MODE.sh
|
|
|
|
else
|
|
|
|
${SCRIPT_DIR}/build_$MODE.sh
|
|
|
|
mkdir deploy; tar -czpf deploy/dist.tgz -C dist .
|
|
|
|
${SCRIPT_DIR}/test_$MODE.sh
|
|
|
|
fi
|
2015-06-03 20:22:30 -04:00
|
|
|
fi
|