1- gcp_credentials : ENCRYPTED[!f1177d1ddb5330ffaa9ea11c9c9e8e0c542185e895c36071f18cec923dd31c50ece6d18da89c2f6f1cd2d1a98d0c2eea !]
1+ gcp_credentials : ENCRYPTED[!9e38557f08108136b3625b7e62c64cc9eccc50365ffeaaa55c6be52f1d8fd6225af5badc69983ca08484274f02f34424 !]
22
33# Run on PRs and main branch post submit only. Don't run tests when tagging.
44only_if : $CIRRUS_TAG == '' && ($CIRRUS_PR != '' || $CIRRUS_BRANCH == 'main')
55env :
66 CHANNEL : " master" # Default to master when not explicitly set by a task.
77 PLUGIN_TOOL_COMMAND : " dart ./script/tool/bin/flutter_plugin_tools.dart"
88
9+ install_chrome_linux_template : &INSTALL_CHROME_LINUX
10+ env :
11+ CHROME_NO_SANDBOX : true
12+ CHROME_DOWNLOAD_DIR : /tmp/chromium
13+ CHROME_EXECUTABLE : $CHROME_DOWNLOAD_DIR/chrome-linux/chrome
14+ CHROMEDRIVER_EXECUTABLE : $CHROME_DOWNLOAD_DIR/chromedriver/chromedriver
15+ PATH : $PATH:$CHROME_DOWNLOAD_DIR/chrome-linux
16+ install_chromium_script :
17+ # Install a pinned version of Chromium and its corresponding ChromeDriver.
18+ # Setting CHROME_EXECUTABLE above causes this version to be used for tests.
19+ - ./script/install_chromium.sh
20+
921tool_setup_template : &TOOL_SETUP_TEMPLATE
1022 tool_setup_script :
1123 - .ci/scripts/prepare_tool.sh
@@ -245,7 +257,7 @@ task:
245257 CHANNEL : " master"
246258 CHANNEL : " stable"
247259 MAPS_API_KEY : ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
248- GCLOUD_FIREBASE_TESTLAB_KEY : ENCRYPTED[30e6cf7189e3ff3868edc25d2e638ef2aec70546456427064bbc74b297d36145364f49f9d26b327787a59df149d69262 ]
260+ GCLOUD_FIREBASE_TESTLAB_KEY : ENCRYPTED[4457646586de940f49e054de7d82e60078b205ac627f11a89d077e63f639c9ba1002541d9209a9ee7777e159e97b43d0 ]
249261 build_script :
250262 - ./script/tool_runner.sh build-examples --apk
251263 lint_script :
@@ -258,9 +270,7 @@ task:
258270 firebase_test_lab_script :
259271 - if [[ -n "$GCLOUD_FIREBASE_TESTLAB_KEY" ]]; then
260272 - echo $GCLOUD_FIREBASE_TESTLAB_KEY > ${HOME}/gcloud-service-key.json
261- # (TODO)cyanglaz: add --device model=starqlteue,version=26 back when the device issue is fixed in FTL.
262- # https://github.com/flutter/flutter/issues/114535
263- - ./script/tool_runner.sh firebase-test-lab --device model=redfin,version=30 --exclude=script/configs/exclude_integration_android.yaml
273+ - ./script/tool_runner.sh firebase-test-lab --device model=redfin,version=30 --device model=starqlteue,version=26 --exclude=script/configs/exclude_integration_android.yaml
264274 - else
265275 - echo "This user does not have permission to run Firebase Test Lab tests."
266276 - fi
@@ -286,16 +296,9 @@ task:
286296 matrix :
287297 CHANNEL : " master"
288298 CHANNEL : " stable"
289- CHROME_NO_SANDBOX : true
290- CHROME_DIR : /tmp/web_chromium/
291- CHROME_EXECUTABLE : $CHROME_DIR/chrome-linux/chrome
292- install_script :
293- # Install a pinned version of Chromium and its corresponding ChromeDriver.
294- # Setting CHROME_EXECUTABLE above causes this version to be used for tests.
295- - ./script/install_chromium.sh "$CHROME_DIR"
299+ << : *INSTALL_CHROME_LINUX
296300 chromedriver_background_script :
297- - cd "$CHROME_DIR"
298- - ./chromedriver/chromedriver --port=4444
301+ - $CHROMEDRIVER_EXECUTABLE --port=4444
299302 build_script :
300303 - ./script/tool_runner.sh build-examples --web
301304 drive_script :
@@ -334,62 +337,3 @@ task:
334337 - ./script/tool_runner.sh native-test --macos
335338 drive_script :
336339 - ./script/tool_runner.sh drive-examples --macos --exclude=script/configs/exclude_integration_macos.yaml
337-
338- # Intel macOS tasks.
339- task :
340- << : *MACOS_INTEL_TEMPLATE
341- << : *FLUTTER_UPGRADE_TEMPLATE
342- matrix :
343- # ## iOS+macOS tasks ***
344- # TODO(stuartmorgan): Move this to ARM once google_maps_flutter has ARM
345- # support. `pod lint` makes a synthetic target that doesn't respect the
346- # pod's arch exclusions, so fails to build.
347- - name : darwin-lint_podspecs
348- script :
349- - ./script/tool_runner.sh podspecs
350- # ## iOS tasks ###
351- # TODO(stuartmorgan): Swap this and ios-build_all_plugins once simulator
352- # tests are reliable on the ARM infrastructure. See discussion at
353- # https://github.com/flutter/plugins/pull/5693#issuecomment-1126011089
354- - name : ios-platform_tests
355- # Don't run full platform tests on both channels in pre-submit.
356- skip : $CIRRUS_PR != '' && $CHANNEL == 'stable'
357- env :
358- PATH : $PATH:/usr/local/bin
359- matrix :
360- PACKAGE_SHARDING : " --shardIndex 0 --shardCount 4"
361- PACKAGE_SHARDING : " --shardIndex 1 --shardCount 4"
362- PACKAGE_SHARDING : " --shardIndex 2 --shardCount 4"
363- PACKAGE_SHARDING : " --shardIndex 3 --shardCount 4"
364- matrix :
365- CHANNEL : " master"
366- CHANNEL : " stable"
367- SIMCTL_CHILD_MAPS_API_KEY : ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
368- create_simulator_script :
369- - xcrun simctl list
370- - xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-11 com.apple.CoreSimulator.SimRuntime.iOS-15-0 | xargs xcrun simctl boot
371- build_script :
372- - ./script/tool_runner.sh build-examples --ios
373- xcode_analyze_script :
374- - ./script/tool_runner.sh xcode-analyze --ios
375- xcode_analyze_deprecation_script :
376- # Ensure we don't accidentally introduce deprecated code.
377- - ./script/tool_runner.sh xcode-analyze --ios --ios-min-version=13.0
378- native_test_script :
379- - ./script/tool_runner.sh native-test --ios --ios-destination "platform=iOS Simulator,name=iPhone 11,OS=latest"
380- drive_script :
381- # `drive-examples` contains integration tests, which changes the UI of the application.
382- # This UI change sometimes affects `xctest`.
383- # So we run `drive-examples` after `native-test`; changing the order will result ci failure.
384- - ./script/tool_runner.sh drive-examples --ios --exclude=script/configs/exclude_integration_ios.yaml
385- # ## macOS desktop tasks ###
386- # macos-platform_tests builds all the plugins on M1, so this build is run
387- # on Intel to give us build coverage of both host types.
388- - name : macos-build_all_plugins
389- env :
390- BUILD_ALL_ARGS : " macos"
391- matrix :
392- CHANNEL : " master"
393- CHANNEL : " stable"
394- setup_script :
395- << : *BUILD_ALL_PLUGINS_APP_TEMPLATE
0 commit comments