angular-docs-cn/scripts/ci/build_and_test.sh

17 lines
379 B
Bash
Raw Normal View History

#!/bin/bash
set -e
2015-02-13 17:59:29 -05:00
MODE=$1
echo =============================================================================
# go to project dir
SCRIPT_DIR=$(dirname $0)
cd $SCRIPT_DIR/../..
2015-02-13 17:59:29 -05:00
${SCRIPT_DIR}/build_$MODE.sh
${SCRIPT_DIR}/test_unit_$MODE.sh
if [ "$MODE" == "dart" ]; then # JS doesn't yet have server tests
${SCRIPT_DIR}/test_server_$MODE.sh
fi
2015-02-13 17:59:29 -05:00
${SCRIPT_DIR}/test_e2e_$MODE.sh