chore(build): Make PRs 15m faster.
Don't precompile Dart2JS for pull requests, instead serve the dart sources with pub serve. We were already testing with Dartium so all we lose is some test coverage of defects exposed only by the Dart2JS transpiler. This still runs the dart transformer. Fixes #3030
This commit is contained in:
@@ -12,8 +12,17 @@ function killServer () {
|
||||
kill $serverPid
|
||||
}
|
||||
|
||||
./node_modules/.bin/gulp serve.js.dart2js&
|
||||
serverPid=$!
|
||||
# Serving pre-compiled dart JS takes an extra 15m.
|
||||
# So we do this only for post-commit testing.
|
||||
# Pull requests test with Dartium and pub serve
|
||||
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
|
||||
./node_modules/.bin/gulp build/pubbuild.dart
|
||||
./node_modules/.bin/gulp serve.js.dart2js&
|
||||
serverPid=$!
|
||||
else
|
||||
./node_modules/.bin/gulp serve.dart&
|
||||
serverPid=$!
|
||||
fi
|
||||
|
||||
./node_modules/.bin/gulp build.css.material&
|
||||
|
||||
|
||||
+11
-2
@@ -13,8 +13,17 @@ function killServer () {
|
||||
kill $serverPid
|
||||
}
|
||||
|
||||
./node_modules/.bin/gulp serve.js.prod serve.js.dart2js&
|
||||
serverPid=$!
|
||||
# Serving pre-compiled dart JS takes an extra 15m.
|
||||
# So we do this only for post-commit testing.
|
||||
# Pull requests test with Dartium and pub serve
|
||||
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
|
||||
./node_modules/.bin/gulp build/pubbuild.dart
|
||||
./node_modules/.bin/gulp serve.js.prod serve.js.dart2js&
|
||||
serverPid=$!
|
||||
else
|
||||
./node_modules/.bin/gulp serve.js.prod serve.dart&
|
||||
serverPid=$!
|
||||
fi
|
||||
|
||||
trap killServer EXIT
|
||||
|
||||
|
||||
@@ -11,8 +11,17 @@ cd $SCRIPT_DIR/../..
|
||||
webdriverServerPid=$!
|
||||
ps -ef | grep webdriver-manager
|
||||
|
||||
./node_modules/.bin/gulp serve.js.dart2js&
|
||||
serverPid=$!
|
||||
# Serving pre-compiled dart JS takes an extra 15m.
|
||||
# So we do this only for post-commit testing.
|
||||
# Pull requests test with Dartium and pub serve
|
||||
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
|
||||
./node_modules/.bin/gulp build/pubbuild.dart
|
||||
./node_modules/.bin/gulp serve.js.dart2js&
|
||||
serverPid=$!
|
||||
else
|
||||
./node_modules/.bin/gulp serve.dart&
|
||||
serverPid=$!
|
||||
fi
|
||||
|
||||
function killAllServers () {
|
||||
kill $serverPid
|
||||
|
||||
Reference in New Issue
Block a user