angular-cn/packages/examples/test.sh

18 lines
260 B
Bash
Executable File

#!/usr/bin/env bash
set -u -e -o pipefail
(
cd `dirname $0`
./build.sh
gulp serve-examples &
trap "kill $!" EXIT
(
cd ../../
NODE_PATH=${NODE_PATH:-}:dist/all
$(npm bin)/protractor protractor-examples-e2e.conf.js --bundles=true
)
)