File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 37
37
# Order: a slower build first, so that we don't occupy an idle travis worker waiting for others to complete.
38
38
- MODE=lint
39
39
- MODE=circular_deps
40
+ - MODE=extract_metadata
40
41
- MODE=e2e
41
42
- MODE=saucelabs_required
42
43
- MODE=browserstack_required
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ source scripts/ci/sources/mode.sh
11
11
source scripts/ci/sources/tunnel.sh
12
12
13
13
start_tunnel
14
- npm run build
15
- npm run inline-resources
16
14
17
15
wait_for_tunnel
18
16
if is_lint; then
19
17
npm run tslint
20
18
npm run ci:forbidden-identifiers
21
19
npm run stylelint
22
20
elif is_circular_deps_check; then
21
+ # Build first because madge needs the JavaScript output.
22
+ ng build
23
23
npm run check-circular-deps
24
24
elif is_e2e; then
25
25
# Start up the e2e app. This will take some time.
@@ -32,12 +32,24 @@ elif is_e2e; then
32
32
echo " Waiting for e2e app to start"
33
33
while [ ! -f ./dist/components/button/button.js ]; do
34
34
sleep 2
35
+ echo -n " .."
35
36
done
36
37
38
+ echo " \nInlining resources"
39
+ npm run inline-resources
40
+
37
41
# Run the e2e tests on the served e2e app.
38
42
echo " Starting e2e tests"
39
43
ng e2e
44
+ elif is_extract_metadata; then
45
+ # Run `tsc` first so that the directory structure in dist/ matches what ngc expects.
46
+ ./node_modules/.bin/tsc -p ./src/demo-app/
47
+ ./node_modules/.bin/ngc -p ./src/demo-app/
40
48
else
49
+ # Unit tests
50
+ npm run build
51
+ npm run inline-resources
52
+
41
53
karma start test/karma.conf.js --single-run --no-auto-watch --reporters=' dots'
42
54
fi
43
55
teardown_tunnel
Original file line number Diff line number Diff line change @@ -12,3 +12,7 @@ is_lint() {
12
12
is_circular_deps_check () {
13
13
[[ " $MODE " = circular_deps ]]
14
14
}
15
+
16
+ is_extract_metadata () {
17
+ [[ " $MODE " = extract_metadata ]]
18
+ }
You can’t perform that action at this time.
0 commit comments