angular-cn/scripts/ci/build_and_test.sh

14 lines
286 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
mkdir deploy; tar -czpf deploy/dist.tgz -C dist .
${SCRIPT_DIR}/test_$MODE.sh