Files
angular__angular/scripts/ci/build-and-test.sh
T
2016-06-02 15:51:17 -07:00

32 lines
639 B
Bash
Executable File

#!/usr/bin/env bash
set -e
echo "======= Starting build-and-test.sh ========================================"
# Go to project dir
cd $(dirname $0)/../..
# Include sources.
source scripts/ci/sources/mode.sh
source scripts/ci/sources/tunnel.sh
start_tunnel
npm run build
npm run inline-resources
wait_for_tunnel
if is_lint; then
npm run tslint
npm run ci:forbidden-identifiers
npm run stylelint
elif is_circular_deps_check; then
npm run check-circular-deps
elif is_e2e; then
MD_APP=e2e ng serve &
sleep 20
ng e2e
else
karma start test/karma.conf.js --single-run --no-auto-watch --reporters='dots'
fi
teardown_tunnel