2015-01-08 17:20:05 -05:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
echo =============================================================================
|
|
|
|
# go to project dir
|
|
|
|
SCRIPT_DIR=$(dirname $0)
|
|
|
|
source $SCRIPT_DIR/env_dart.sh
|
|
|
|
cd $SCRIPT_DIR/../..
|
|
|
|
|
|
|
|
./node_modules/.bin/webdriver-manager update
|
|
|
|
|
|
|
|
function killServer () {
|
|
|
|
kill $serverPid
|
|
|
|
}
|
|
|
|
|
|
|
|
./node_modules/.bin/gulp serve.js.prod serve.js.dart2js&
|
|
|
|
serverPid=$!
|
|
|
|
|
|
|
|
trap killServer EXIT
|
|
|
|
|
2015-01-20 19:29:50 -05:00
|
|
|
# wait for server to come up!
|
|
|
|
sleep 10
|
|
|
|
|
2015-02-17 13:32:09 -05:00
|
|
|
./node_modules/.bin/protractor protractor-js.conf.js --browsers=$PERF_BROWSERS --benchmark
|
2015-03-26 19:56:53 -04:00
|
|
|
./node_modules/.bin/protractor protractor-dart2js.conf.js --browsers=$PERF_BROWSERS --benchmark
|