mirror of
https://github.com/flutter/flutter
synced 2024-08-27 12:00:58 +00:00
Re-enable plugin analysis test (#89856)
This commit is contained in:
parent
cdad35f2d8
commit
a01e4733df
1
.ci.yaml
1
.ci.yaml
|
@ -349,7 +349,6 @@ targets:
|
||||||
scheduler: luci
|
scheduler: luci
|
||||||
|
|
||||||
- name: Linux flutter_plugins
|
- name: Linux flutter_plugins
|
||||||
bringup: true # https://github.com/flutter/flutter/issues/89805
|
|
||||||
recipe: flutter/flutter_drone
|
recipe: flutter/flutter_drone
|
||||||
timeout: 60
|
timeout: 60
|
||||||
properties:
|
properties:
|
||||||
|
|
|
@ -1140,16 +1140,30 @@ Future<void> _runFlutterPluginsTests() async {
|
||||||
],
|
],
|
||||||
workingDirectory: checkout.path,
|
workingDirectory: checkout.path,
|
||||||
);
|
);
|
||||||
|
// Prep the repository tooling.
|
||||||
|
// This test does not use tool_runner.sh because in this context the test
|
||||||
|
// should always run on the entire plugins repo, while tool_runner.sh
|
||||||
|
// is designed for flutter/plugins CI and only analyzes changed repository
|
||||||
|
// files when run for anything but master.
|
||||||
|
final String toolDir = path.join(checkout.path, 'script', 'tool');
|
||||||
await runCommand(
|
await runCommand(
|
||||||
'./script/tool_runner.sh',
|
'dart',
|
||||||
<String>[
|
<String>[
|
||||||
|
'pub',
|
||||||
|
'get',
|
||||||
|
],
|
||||||
|
workingDirectory: toolDir,
|
||||||
|
);
|
||||||
|
final String toolScript = path.join(toolDir, 'bin', 'flutter_plugin_tools.dart');
|
||||||
|
await runCommand(
|
||||||
|
'dart',
|
||||||
|
<String>[
|
||||||
|
'run',
|
||||||
|
toolScript,
|
||||||
'analyze',
|
'analyze',
|
||||||
'--custom-analysis=script/configs/custom_analysis.yaml',
|
'--custom-analysis=script/configs/custom_analysis.yaml',
|
||||||
],
|
],
|
||||||
workingDirectory: checkout.path,
|
workingDirectory: checkout.path,
|
||||||
environment: <String, String>{
|
|
||||||
'BRANCH_NAME': 'master',
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
await selectSubshard(<String, ShardRunner>{
|
await selectSubshard(<String, ShardRunner>{
|
||||||
|
|
Loading…
Reference in a new issue