83402930f2
* `npm install` now does a full install; auxiliary installation steps have been integrated into the `postinstall` script. * Updated developer docs `DEVELOPER.md` accordingly; also added instructions to dev docs for performing full tests (via `npm test`) -- same as those run on Travis. * Reorg in tests so that JS tests can run without a Dart env. Partly fixes #945 **under the assumption that when running JS tests locally, `ChromeCanary` is the desired browser to use**. Note that CI tests (Travis) still uses `DartiumWithWebPlatform` across the board (Maybe because ChromeCanary isn't being installed?) Fixes #1012. Closes #1010
29 lines
637 B
Bash
Executable File
29 lines
637 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo =============================================================================
|
|
# go to project dir
|
|
SCRIPT_DIR=$(dirname $0)
|
|
cd $SCRIPT_DIR/../..
|
|
|
|
./node_modules/.bin/webdriver-manager update
|
|
./node_modules/.bin/webdriver-manager start&
|
|
webdriverServerPid=$!
|
|
ps -ef | grep webdriver-manager
|
|
|
|
./node_modules/.bin/gulp serve.js.dart2js&
|
|
serverPid=$!
|
|
|
|
function killAllServers () {
|
|
kill $serverPid
|
|
pkill -P $webdriverServerPid
|
|
}
|
|
|
|
trap killAllServers EXIT
|
|
|
|
# wait for server to come up!
|
|
sleep 3
|
|
|
|
./node_modules/.bin/gulp test.transpiler.unittest
|
|
./node_modules/.bin/gulp test.server.dart --browsers=$KARMA_BROWSERS
|