mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
32 lines
639 B
Bash
Executable File
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
|