ci(aio): test the example e2e files using local build of Angular
This commit is contained in:
parent
68f458909a
commit
6840b7bda9
@ -25,6 +25,10 @@ const IGNORED_EXAMPLES = [
|
|||||||
* --setup run yarn install, copy boilerplate and update webdriver
|
* --setup run yarn install, copy boilerplate and update webdriver
|
||||||
* e.g. --setup
|
* e.g. --setup
|
||||||
*
|
*
|
||||||
|
* --local to use the locally built Angular packages, rather than versions from npm
|
||||||
|
* Must be used in conjunction with --setup as this is when the packages are copied.
|
||||||
|
* e.g. --setup --local
|
||||||
|
*
|
||||||
* --shard to shard the specs into groups to allow you to run them in parallel
|
* --shard to shard the specs into groups to allow you to run them in parallel
|
||||||
* e.g. --shard=0/2 // the even specs: 0, 2, 4, etc
|
* e.g. --shard=0/2 // the even specs: 0, 2, 4, etc
|
||||||
* e.g. --shard=1/2 // the odd specs: 1, 3, 5, etc
|
* e.g. --shard=1/2 // the odd specs: 1, 3, 5, etc
|
||||||
@ -35,7 +39,7 @@ function runE2e() {
|
|||||||
if (argv.setup) {
|
if (argv.setup) {
|
||||||
// Run setup.
|
// Run setup.
|
||||||
console.log('runE2e: copy boilerplate');
|
console.log('runE2e: copy boilerplate');
|
||||||
const spawnInfo = spawnExt('yarn', ['boilerplate:add'], { cwd: AIO_PATH });
|
const spawnInfo = spawnExt('yarn', ['boilerplate:add', argv.local ? '-- --local': ''], { cwd: AIO_PATH });
|
||||||
promise = spawnInfo.promise
|
promise = spawnInfo.promise
|
||||||
.then(() => {
|
.then(() => {
|
||||||
console.log('runE2e: update webdriver');
|
console.log('runE2e: update webdriver');
|
||||||
|
@ -13,6 +13,6 @@ source ${thisDir}/_travis-fold.sh
|
|||||||
|
|
||||||
# Run example e2e tests
|
# Run example e2e tests
|
||||||
travisFoldStart "test.aio.example-e2e"
|
travisFoldStart "test.aio.example-e2e"
|
||||||
yarn example-e2e -- --setup --shard=${AIO_SHARD}/2
|
yarn example-e2e -- --setup --local --shard=${AIO_SHARD}/2
|
||||||
travisFoldEnd "test.aio.example-e2e"
|
travisFoldEnd "test.aio.example-e2e"
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user