mirror of
https://github.com/flutter/packages.git
synced 2025-06-29 06:06:59 +08:00
Move iOS Swift unit tests back to Cirrus (#3221)
They are hanging frequently on LUCI now, even though they used to (at least mostly) work. Updates the simulator to use one available on the current LUCI machines, and adds a step to Cirrus to ensure the creation of a matching simulator so that the script works on both. (Currently it appears that Cirrus by default only has iPhone 14, which LUCI doesn't have by default.)
This commit is contained in:
0
.ci/scripts/build_all_packages_app.sh
Normal file → Executable file
0
.ci/scripts/build_all_packages_app.sh
Normal file → Executable file
0
.ci/scripts/create_all_packages_app.sh
Normal file → Executable file
0
.ci/scripts/create_all_packages_app.sh
Normal file → Executable file
0
.ci/scripts/create_simulator.sh
Normal file → Executable file
0
.ci/scripts/create_simulator.sh
Normal file → Executable file
0
.ci/scripts/dart_unit_tests_win32.sh
Normal file → Executable file
0
.ci/scripts/dart_unit_tests_win32.sh
Normal file → Executable file
0
.ci/scripts/drive_examples_win32.sh
Normal file → Executable file
0
.ci/scripts/drive_examples_win32.sh
Normal file → Executable file
0
.ci/scripts/plugin_tools_tests.sh
Normal file → Executable file
0
.ci/scripts/plugin_tools_tests.sh
Normal file → Executable file
@ -340,6 +340,11 @@ task:
|
||||
matrix:
|
||||
CHANNEL: "master"
|
||||
CHANNEL: "stable"
|
||||
# Create an iPhone 13, to match what is available on LUCI, since Pigeon tests
|
||||
# currently have a hard-coded device.
|
||||
create_simulator_script:
|
||||
- xcrun simctl list
|
||||
- xcrun simctl create "iPhone 13" com.apple.CoreSimulator.SimDeviceType.iPhone-13 com.apple.CoreSimulator.SimRuntime.iOS-16-0
|
||||
local_tests_script:
|
||||
# script/configs/linux_only_custom_test.yaml
|
||||
# Custom tests need Chrome for these packages. (They run in linux-custom_package_tests)
|
||||
|
@ -49,7 +49,6 @@ Future<void> main(List<String> args) async {
|
||||
// separation. See https://github.com/flutter/flutter/issues/120231.
|
||||
const List<String> macOSHostLuciTests = <String>[
|
||||
iOSObjCUnitTests,
|
||||
iOSSwiftUnitTests,
|
||||
// TODO(stuartmorgan): Enable by default once CI issues are solved; see
|
||||
// https://github.com/flutter/packages/pull/2816.
|
||||
//iOSObjCIntegrationTests,
|
||||
@ -60,6 +59,7 @@ Future<void> main(List<String> args) async {
|
||||
// iOSSwiftIntegrationTests,
|
||||
];
|
||||
const List<String> macOSHostCirrusTests = <String>[
|
||||
iOSSwiftUnitTests,
|
||||
macOSSwiftUnitTests,
|
||||
macOSSwiftIntegrationTests,
|
||||
];
|
||||
|
@ -303,7 +303,7 @@ Future<int> _runIOSPluginUnitTests(String testPluginPath) async {
|
||||
return runXcodeBuild(
|
||||
'$examplePath/ios',
|
||||
sdk: 'iphonesimulator',
|
||||
destination: 'platform=iOS Simulator,name=iPhone 8',
|
||||
destination: 'platform=iOS Simulator,name=iPhone 13',
|
||||
extraArguments: <String>['test'],
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user