mirror of
https://github.com/flutter/packages.git
synced 2025-08-24 03:18:54 +08:00
[ci] Drive tests with html renderer if CHANNEL is stable. (#7146)
Introduces a small fork in the `drive_examples_command` to run integration tests with `--web-renderer=html` in the `stable` channel (and `--web-renderer=canvaskit` in `master`). This is supposed to be removed, once the current `master` rolls into `stable` (see clean-up issue referenced below). ## Issues * Part of: https://github.com/flutter/flutter/issues/143543 * Prevents flakes: https://github.com/flutter/packages/pull/7115#issuecomment-2226661488 * Clean-up issue: https://github.com/flutter/flutter/issues/151869
This commit is contained in:
@ -119,7 +119,11 @@ class DriveExamplesCommand extends PackageLoopingCommand {
|
||||
'web-server',
|
||||
'--web-port=7357',
|
||||
'--browser-name=chrome',
|
||||
'--web-renderer=canvaskit',
|
||||
// TODO(dit): Clean this up, https://github.com/flutter/flutter/issues/151869
|
||||
if (platform.environment['CHANNEL']?.toLowerCase() == 'master')
|
||||
'--web-renderer=canvaskit',
|
||||
if (platform.environment['CHANNEL']?.toLowerCase() != 'master')
|
||||
'--web-renderer=html',
|
||||
if (platform.environment.containsKey('CHROME_EXECUTABLE'))
|
||||
'--chrome-binary=${platform.environment['CHROME_EXECUTABLE']}',
|
||||
],
|
||||
|
Reference in New Issue
Block a user