test(aio): fix running docs examples against local builds (#18520)
This commit also updates the version of `@angular/cli` used for docs examples. The previous (transient) dependency `@ngtools/webpack` was not compatible with `@angular/compiler-cli@>=5` and was breaking when running against the local builds (currently at 5.0.0-beta.2). The version of `@ngtools/webpack` used by the latest `@angular/cli` version is compatible with `@angular/compiler-cli@5`.
This commit is contained in:

committed by
Victor Berchet

parent
fd6ae571b8
commit
7f2037f0b6
@ -40,6 +40,16 @@ if [[ ${CI_MODE:-} == "aio" ]]; then
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
# Build the Angular packages then exit (no further build required)
|
||||
if [[ ${CI_MODE:-} == "aio_e2e" ]]; then
|
||||
travisFoldStart "build.aio_e2e"
|
||||
(
|
||||
./build.sh
|
||||
)
|
||||
travisFoldEnd "build.aio_e2e"
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
travisFoldStart "tsc tools"
|
||||
$(npm bin)/tsc -p tools
|
||||
$(npm bin)/tsc -p packages/tsc-wrapped/tsconfig-build.json
|
||||
|
@ -18,6 +18,12 @@ source ${thisDir}/_travis-fold.sh
|
||||
travisFoldEnd "test.aio.lint"
|
||||
|
||||
|
||||
# Run unit tests for boilerplate tools
|
||||
travisFoldStart "test.aio.boilerplate.unit"
|
||||
yarn boilerplate:test
|
||||
travisFoldEnd "test.aio.boilerplate.unit"
|
||||
|
||||
|
||||
# Run unit tests
|
||||
travisFoldStart "test.aio.unit"
|
||||
yarn test -- --single-run
|
||||
@ -29,11 +35,13 @@ source ${thisDir}/_travis-fold.sh
|
||||
yarn e2e
|
||||
travisFoldEnd "test.aio.e2e"
|
||||
|
||||
|
||||
# Run PWA-score tests
|
||||
travisFoldStart "test.aio.pwaScore"
|
||||
yarn test-pwa-score-local
|
||||
travisFoldEnd "test.aio.pwaScore"
|
||||
|
||||
|
||||
# Run unit tests for aio/aio-builds-setup
|
||||
travisFoldStart "test.aio.aio-builds-setup"
|
||||
./aio-builds-setup/scripts/test.sh
|
||||
|
Reference in New Issue
Block a user