7b2f757b2b
In order to speedup the startup time of test.unit.js task, we are moving the circular dependency check into a pre-test check that executes only on travis. Similarly we are moving the style check to a post-test check that executes on travis. This way if a circular dependency issue occurs, we find it before running tests on CI and if the code is not formatted we fail the build only if all the tests pass. Related to #2536 Related to #2094
19 lines
602 B
Bash
Executable File
19 lines
602 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo =============================================================================
|
|
# go to project dir
|
|
SCRIPT_DIR=$(dirname $0)
|
|
cd $SCRIPT_DIR/../..
|
|
|
|
# Issue #945 Travis still uses Dartium, and hence needs the env setup.
|
|
# For local tests, when a developer doesn't have Dart, don't source env_dart.sh
|
|
if ${SCRIPT_DIR}/env_dart.sh 2>&1 > /dev/null ; then
|
|
source $SCRIPT_DIR/env_dart.sh
|
|
fi
|
|
|
|
./node_modules/.bin/gulp pre-test-checks
|
|
./node_modules/.bin/gulp test.js --browsers=${KARMA_BROWSERS:-ChromeCanary}
|
|
${SCRIPT_DIR}/test_e2e_js.sh
|
|
./node_modules/.bin/gulp post-test-checks
|