Migrate docs_test to shard. (#139282)
This is part of the deprecation of adhoc tests. Bug: https://github.com/flutter/flutter/issues/139153
This commit is contained in:
@@ -266,6 +266,7 @@ Future<void> main(List<String> args) async {
|
||||
'customer_testing': _runCustomerTesting,
|
||||
'analyze': _runAnalyze,
|
||||
'fuchsia_precache': _runFuchsiaPrecache,
|
||||
'docs': _runDocs,
|
||||
kTestHarnessShardName: _runTestHarnessTests, // Used for testing this script; also run as part of SHARD=framework_tests, SUBSHARD=misc.
|
||||
});
|
||||
} catch (error, stackTrace) {
|
||||
@@ -1628,6 +1629,22 @@ Future<void> _runFuchsiaPrecache() async {
|
||||
);
|
||||
}
|
||||
|
||||
// Runs docs.
|
||||
Future<void> _runDocs() async {
|
||||
printProgress('${green}Running flutter doc tests$reset');
|
||||
await runCommand(
|
||||
'./dev/bots/docs.sh',
|
||||
<String>[
|
||||
'--output',
|
||||
'dev/docs/api_docs.zip',
|
||||
'--keep-staging',
|
||||
'--staging-dir',
|
||||
'dev/docs',
|
||||
],
|
||||
workingDirectory: flutterRoot,
|
||||
);
|
||||
}
|
||||
|
||||
/// Runs the skp_generator from the flutter/tests repo.
|
||||
///
|
||||
/// See also the customer_tests shard.
|
||||
|
||||
Reference in New Issue
Block a user