@@ -44,7 +44,7 @@ function runE2e() {
44
44
// Run setup.
45
45
console . log ( 'runE2e: setup boilerplate' ) ;
46
46
const installPackagesCommand = `example-use-${ argv . local ? 'local' : 'npm' } ` ;
47
- const addBoilerplateCommand = ' boilerplate:add' ;
47
+ const addBoilerplateCommand = ` boilerplate:add${ argv . ivy ? ':ivy' : '' } ` ;
48
48
shelljs . exec ( `yarn ${ installPackagesCommand } ` , { cwd : AIO_PATH } ) ;
49
49
shelljs . exec ( `yarn ${ addBoilerplateCommand } ` , { cwd : AIO_PATH } ) ;
50
50
}
@@ -102,16 +102,16 @@ function findAndRunE2eTests(filter, outputFile, shard) {
102
102
} ) ;
103
103
} ) ;
104
104
} , Promise . resolve ( ) )
105
- . then ( ( ) => {
106
- return e2eSpecPaths . cli . reduce ( ( promise , specPath ) => {
107
- return promise . then ( ( ) => {
108
- return runE2eTestsCLI ( specPath , outputFile ) . then ( ok => {
109
- const arr = ok ? status . passed : status . failed ;
110
- arr . push ( specPath ) ;
105
+ . then ( ( ) => {
106
+ return e2eSpecPaths . cli . reduce ( ( promise , specPath ) => {
107
+ return promise . then ( ( ) => {
108
+ return runE2eTestsCLI ( specPath , outputFile ) . then ( ok => {
109
+ const arr = ok ? status . passed : status . failed ;
110
+ arr . push ( specPath ) ;
111
+ } ) ;
111
112
} ) ;
112
- } ) ;
113
- } , Promise . resolve ( ) ) ;
114
- } ) ;
113
+ } , Promise . resolve ( ) ) ;
114
+ } ) ;
115
115
} )
116
116
. then ( ( ) => {
117
117
const stopTime = new Date ( ) . getTime ( ) ;
@@ -172,8 +172,8 @@ function runProtractorSystemJS(prepPromise, appDir, appRunSpawnInfo, outputFile)
172
172
} ) ;
173
173
} )
174
174
. then (
175
- function ( ) { return finish ( appRunSpawnInfo . proc . pid , true ) ; } ,
176
- function ( ) { return finish ( appRunSpawnInfo . proc . pid , false ) ; }
175
+ function ( ) { return finish ( appRunSpawnInfo . proc . pid , true ) ; } ,
176
+ function ( ) { return finish ( appRunSpawnInfo . proc . pid , false ) ; }
177
177
) ;
178
178
}
179
179
@@ -206,20 +206,20 @@ function runE2eTestsCLI(appDir, outputFile) {
206
206
console . log ( `\n\n=========== Running aio example tests for: ${ appDir } ` ) ;
207
207
// `--no-webdriver-update` is needed to preserve the ChromeDriver version already installed.
208
208
const config = loadExampleConfig ( appDir ) ;
209
- const commands = config . e2e || [ { cmd : 'yarn' , args : [ 'e2e' , '--no-webdriver-update' ] } ] ;
209
+ const commands = config . e2e || [ { cmd : 'yarn' , args : [ 'e2e' , ( argv . ivy ? '--prod' : '' ) , '--no-webdriver-update' ] } ] ;
210
210
211
211
const e2eSpawnPromise = commands . reduce ( ( prevSpawnPromise , { cmd, args } ) => {
212
212
return prevSpawnPromise . then ( ( ) => {
213
213
const currSpawn = spawnExt ( cmd , args , { cwd : appDir } ) ;
214
214
return currSpawn . promise . then (
215
- ( ) => Promise . resolve ( finish ( currSpawn . proc . pid , true ) ) ,
216
- ( ) => Promise . reject ( finish ( currSpawn . proc . pid , false ) ) ) ;
215
+ ( ) => Promise . resolve ( finish ( currSpawn . proc . pid , true ) ) ,
216
+ ( ) => Promise . reject ( finish ( currSpawn . proc . pid , false ) ) ) ;
217
217
} ) ;
218
218
} , Promise . resolve ( ) ) ;
219
219
220
220
return e2eSpawnPromise . then (
221
- ( ) => { fs . appendFileSync ( outputFile , `Passed: ${ appDir } \n\n` ) ; return true ; } ,
222
- ( ) => { fs . appendFileSync ( outputFile , `Failed: ${ appDir } \n\n` ) ; return false ; } ) ;
221
+ ( ) => { fs . appendFileSync ( outputFile , `Passed: ${ appDir } \n\n` ) ; return true ; } ,
222
+ ( ) => { fs . appendFileSync ( outputFile , `Failed: ${ appDir } \n\n` ) ; return false ; } ) ;
223
223
}
224
224
225
225
// Report final status.
0 commit comments