Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 92fa36b

Browse files
committed
template
1 parent b883d96 commit 92fa36b

File tree

1 file changed

+33
-48
lines changed

1 file changed

+33
-48
lines changed

.cirrus.yml

Lines changed: 33 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,33 @@ build_all_plugins_app_template: &BUILD_ALL_PLUGINS_APP_TEMPLATE
5151
- cd all_plugins
5252
- flutter build $BUILD_ALL_ARGS --release
5353

54+
ios_platform_tests_template: &IOS_PLATFORM_TESTS_TEMPLATE
55+
env:
56+
PATH: $PATH:/usr/local/bin
57+
matrix:
58+
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 4"
59+
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 4"
60+
PLUGIN_SHARDING: "--shardIndex 2 --shardCount 4"
61+
PLUGIN_SHARDING: "--shardIndex 3 --shardCount 4"
62+
SIMCTL_CHILD_MAPS_API_KEY: ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
63+
create_simulator_script:
64+
- xcrun simctl list
65+
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-11 $SIMULATOR_RUNTIME | xargs xcrun simctl boot
66+
build_script:
67+
- ./script/tool_runner.sh build-examples --ios
68+
xcode_analyze_script:
69+
- ./script/tool_runner.sh xcode-analyze --ios
70+
xcode_analyze_deprecation_script:
71+
# Ensure we don't accidentally introduce deprecated code.
72+
- ./script/tool_runner.sh xcode-analyze --ios --ios-min-version=13.0
73+
native_test_script:
74+
- ./script/tool_runner.sh native-test --ios --ios-destination "platform=iOS Simulator,name=iPhone 11,OS=latest"
75+
drive_script:
76+
# `drive-examples` contains integration tests, which changes the UI of the application.
77+
# This UI change sometimes affects `xctest`.
78+
# So we run `drive-examples` after `native-test`; changing the order will result ci failure.
79+
- ./script/tool_runner.sh drive-examples --ios --exclude=script/configs/exclude_integration_ios.yaml --enable-software-rendering
80+
5481
macos_template: &MACOS_TEMPLATE
5582
# Only one macOS task can run in parallel without credits, so use them for
5683
# PRs on macOS.
@@ -316,33 +343,11 @@ task:
316343
<< : *BUILD_ALL_PLUGINS_APP_TEMPLATE
317344
- name: ios-platform_tests
318345
env:
319-
PATH: $PATH:/usr/local/bin
320346
# TODO(jmagman): Run on stable when --enable-software-rendering
321347
# is available https://github.com/flutter/flutter/pull/105161.
322348
CHANNEL: "master"
323-
matrix:
324-
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 4"
325-
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 4"
326-
PLUGIN_SHARDING: "--shardIndex 2 --shardCount 4"
327-
PLUGIN_SHARDING: "--shardIndex 3 --shardCount 4"
328-
SIMCTL_CHILD_MAPS_API_KEY: ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
329-
create_simulator_script:
330-
- xcrun simctl list
331-
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-11 com.apple.CoreSimulator.SimRuntime.iOS-15-0 | xargs xcrun simctl boot
332-
build_script:
333-
- ./script/tool_runner.sh build-examples --ios
334-
xcode_analyze_script:
335-
- ./script/tool_runner.sh xcode-analyze --ios
336-
xcode_analyze_deprecation_script:
337-
# Ensure we don't accidentally introduce deprecated code.
338-
- ./script/tool_runner.sh xcode-analyze --ios --ios-min-version=13.0
339-
native_test_script:
340-
- ./script/tool_runner.sh native-test --ios --ios-destination "platform=iOS Simulator,name=iPhone 11,OS=latest"
341-
drive_script:
342-
# `drive-examples` contains integration tests, which changes the UI of the application.
343-
# This UI change sometimes affects `xctest`.
344-
# So we run `drive-examples` after `native-test`; changing the order will result ci failure.
345-
- ./script/tool_runner.sh drive-examples --ios --exclude=script/configs/exclude_integration_ios.yaml --enable-software-rendering
349+
SIMULATOR_RUNTIME: com.apple.CoreSimulator.SimRuntime.iOS-15-5
350+
<< : *IOS_PLATFORM_TESTS_TEMPLATE
346351
### macOS desktop tasks ###
347352
- name: macos-platform_tests
348353
env:
@@ -381,31 +386,11 @@ task:
381386
# https://github.com/flutter/plugins/pull/5693#issuecomment-1126011089
382387
- name: ios-platform_tests
383388
env:
384-
PATH: $PATH:/usr/local/bin
389+
# TODO(jmagman): Move to MACOS_ARM_TEMPLATE when --enable-software-rendering
390+
# is available https://github.com/flutter/flutter/pull/105161.
385391
CHANNEL: "stable"
386-
matrix:
387-
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 4"
388-
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 4"
389-
PLUGIN_SHARDING: "--shardIndex 2 --shardCount 4"
390-
PLUGIN_SHARDING: "--shardIndex 3 --shardCount 4"
391-
SIMCTL_CHILD_MAPS_API_KEY: ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
392-
create_simulator_script:
393-
- xcrun simctl list
394-
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-11 com.apple.CoreSimulator.SimRuntime.iOS-15-0 | xargs xcrun simctl boot
395-
build_script:
396-
- ./script/tool_runner.sh build-examples --ios
397-
xcode_analyze_script:
398-
- ./script/tool_runner.sh xcode-analyze --ios
399-
xcode_analyze_deprecation_script:
400-
# Ensure we don't accidentally introduce deprecated code.
401-
- ./script/tool_runner.sh xcode-analyze --ios --ios-min-version=13.0
402-
native_test_script:
403-
- ./script/tool_runner.sh native-test --ios --ios-destination "platform=iOS Simulator,name=iPhone 11,OS=latest"
404-
drive_script:
405-
# `drive-examples` contains integration tests, which changes the UI of the application.
406-
# This UI change sometimes affects `xctest`.
407-
# So we run `drive-examples` after `native-test`; changing the order will result ci failure.
408-
- ./script/tool_runner.sh drive-examples --ios --exclude=script/configs/exclude_integration_ios.yaml
392+
SIMULATOR_RUNTIME: com.apple.CoreSimulator.SimRuntime.iOS-15-0
393+
<< : *IOS_PLATFORM_TESTS_TEMPLATE
409394
### macOS desktop tasks ###
410395
# macos-platform_tests builds all the plugins on M1, so this build is run
411396
# on Intel to give us build coverage of both host types.

0 commit comments

Comments
 (0)