diff --git a/.ci.yaml b/.ci.yaml index c2eff7485998..5b68ab257597 100644 --- a/.ci.yaml +++ b/.ci.yaml @@ -44,7 +44,18 @@ platform_properties: xcode: 14e222b targets: - ### iOS+macOS tasks *** + ### Linux tasks ### + - name: Linux repo_tools_tests + bringup: true # New target + recipe: packages/packages + timeout: 30 + properties: + add_recipes_cq: "true" + target_file: repo_tools_tests.yaml + channel: master + version_file: flutter_master.version + + ### iOS+macOS tasks ### # TODO(stuartmorgan): Move this to ARM once google_maps_flutter has ARM # support. `pod lint` makes a synthetic target that doesn't respect the # pod's arch exclusions, so fails to build. diff --git a/.ci/targets/plugin_tools_tests.yaml b/.ci/targets/plugin_tools_tests.yaml deleted file mode 100644 index 265e74bdd06b..000000000000 --- a/.ci/targets/plugin_tools_tests.yaml +++ /dev/null @@ -1,5 +0,0 @@ -tasks: - - name: prepare tool - script: .ci/scripts/prepare_tool.sh - - name: tool unit tests - script: .ci/scripts/plugin_tools_tests.sh diff --git a/.ci/targets/repo_tools_tests.yaml b/.ci/targets/repo_tools_tests.yaml index a73053e34524..265e74bdd06b 100644 --- a/.ci/targets/repo_tools_tests.yaml +++ b/.ci/targets/repo_tools_tests.yaml @@ -1,4 +1,5 @@ tasks: - name: prepare tool script: .ci/scripts/prepare_tool.sh - # TODO(stuartmorgan): Add actual tests here when moving the repo tooling. + - name: tool unit tests + script: .ci/scripts/plugin_tools_tests.sh diff --git a/script/tool/test/publish_check_command_test.dart b/script/tool/test/publish_check_command_test.dart index f2120040fc6d..b85e56064c9c 100644 --- a/script/tool/test/publish_check_command_test.dart +++ b/script/tool/test/publish_check_command_test.dart @@ -283,7 +283,9 @@ void main() { 'Test for publish-check command.', ); runner.addCommand(PublishCheckCommand(packagesDir, - processRunner: processRunner, httpClient: mockClient)); + platform: mockPlatform, + processRunner: processRunner, + httpClient: mockClient)); processRunner.mockProcessesForExecutable['flutter'] = [ FakeProcessInfo(MockProcess(exitCode: 1, stdout: 'Some error from pub'), @@ -339,7 +341,9 @@ void main() { 'Test for publish-check command.', ); runner.addCommand(PublishCheckCommand(packagesDir, - processRunner: processRunner, httpClient: mockClient)); + platform: mockPlatform, + processRunner: processRunner, + httpClient: mockClient)); final List output = await runCapturingPrint(runner, ['publish-check']);