https://github.com/angular/angular
Raw File
Tip revision: dcfe4173f3ed96143849b7eda70683664439cee8 authored by Kevin Moore on 10 August 2015, 17:44:04 UTC
refactor: allow the latest dart_style version
Tip revision: dcfe417
build_and_test.sh
#!/bin/bash
set -e

MODE=$1

echo =============================================================================
# go to project dir
SCRIPT_DIR=$(dirname $0)
cd $SCRIPT_DIR/../..

if [ "$MODE" = "dart_experimental" ]; then
  ${SCRIPT_DIR}/build_$MODE.sh
elif [ "$MODE" = "saucelabs" ]; then
  ${SCRIPT_DIR}/test_$MODE.sh
elif [ "$MODE" = "lint" ]; then
  ./node_modules/.bin/gulp static-checks
else
  ${SCRIPT_DIR}/build_$MODE.sh
  mkdir deploy; tar -czpf deploy/dist.tgz -C dist .
  ${SCRIPT_DIR}/test_$MODE.sh
fi
back to top