mirror of
https://github.com/flutter/packages.git
synced 2025-06-27 13:19:06 +08:00
[ci] More cirrus.yml pre-alignment with flutter/plugins (#3141)
* Remove unused script argument * Move dart_unit_tests to the platform-agnostic section * Update sharding to match flutter/plugins * Remove stale exclusion * Comment alignment, and add a placeholder for FTL * Remove another outdated exclusion
This commit is contained in:
57
.cirrus.yml
57
.cirrus.yml
@ -16,7 +16,7 @@ install_chrome_linux_template: &INSTALL_CHROME_LINUX
|
|||||||
install_chromium_script:
|
install_chromium_script:
|
||||||
# Install a pinned version of Chromium and its corresponding ChromeDriver.
|
# Install a pinned version of Chromium and its corresponding ChromeDriver.
|
||||||
# Setting CHROME_EXECUTABLE above causes this version to be used for tests.
|
# Setting CHROME_EXECUTABLE above causes this version to be used for tests.
|
||||||
- ./script/install_chromium.sh "$CHROME_DIR"
|
- ./script/install_chromium.sh
|
||||||
|
|
||||||
tool_setup_template: &TOOL_SETUP_TEMPLATE
|
tool_setup_template: &TOOL_SETUP_TEMPLATE
|
||||||
tool_setup_script:
|
tool_setup_script:
|
||||||
@ -224,6 +224,19 @@ task:
|
|||||||
memory: 16G
|
memory: 16G
|
||||||
matrix:
|
matrix:
|
||||||
### Platform-agnostic tasks ###
|
### Platform-agnostic tasks ###
|
||||||
|
- name: dart_unit_tests
|
||||||
|
env:
|
||||||
|
matrix:
|
||||||
|
CHANNEL: "master"
|
||||||
|
CHANNEL: "stable"
|
||||||
|
unit_test_script:
|
||||||
|
- ./script/tool_runner.sh test --exclude=script/configs/dart_unit_tests_exceptions.yaml
|
||||||
|
pathified_unit_test_script:
|
||||||
|
# Run tests with path-based dependencies to ensure that publishing
|
||||||
|
# the changes won't break tests of other packages in the repository
|
||||||
|
# that depend on it.
|
||||||
|
- ./script/tool_runner.sh make-deps-path-based --target-dependencies-with-non-breaking-updates
|
||||||
|
- $PLUGIN_TOOL_COMMAND test --run-on-dirty-packages --exclude=script/configs/dart_unit_tests_exceptions.yaml
|
||||||
- name: linux-custom_package_tests
|
- name: linux-custom_package_tests
|
||||||
env:
|
env:
|
||||||
PATH: $PATH:/usr/local/bin
|
PATH: $PATH:/usr/local/bin
|
||||||
@ -239,19 +252,26 @@ task:
|
|||||||
skip: $CIRRUS_PR != '' && $CHANNEL == 'stable'
|
skip: $CIRRUS_PR != '' && $CHANNEL == 'stable'
|
||||||
env:
|
env:
|
||||||
matrix:
|
matrix:
|
||||||
PACKAGE_SHARDING: "--shardIndex 0 --shardCount 2"
|
PACKAGE_SHARDING: "--shardIndex 0 --shardCount 5"
|
||||||
PACKAGE_SHARDING: "--shardIndex 1 --shardCount 2"
|
PACKAGE_SHARDING: "--shardIndex 1 --shardCount 5"
|
||||||
|
PACKAGE_SHARDING: "--shardIndex 2 --shardCount 5"
|
||||||
|
PACKAGE_SHARDING: "--shardIndex 3 --shardCount 5"
|
||||||
|
PACKAGE_SHARDING: "--shardIndex 4 --shardCount 5"
|
||||||
matrix:
|
matrix:
|
||||||
CHANNEL: "master"
|
CHANNEL: "master"
|
||||||
CHANNEL: "stable"
|
CHANNEL: "stable"
|
||||||
build_script:
|
build_script:
|
||||||
# extension_google_sign_in_as_googleapis_auth is currently not building, see
|
- ./script/tool_runner.sh build-examples --apk
|
||||||
# https://github.com/flutter/flutter/issues/89301
|
|
||||||
- ./script/tool_runner.sh build-examples --apk --exclude=extension_google_sign_in_as_googleapis_auth
|
|
||||||
lint_script:
|
lint_script:
|
||||||
- ./script/tool_runner.sh lint-android # must come after build-examples
|
- ./script/tool_runner.sh lint-android # must come after build-examples
|
||||||
native_unit_test_scipt:
|
native_unit_test_script:
|
||||||
|
# Native integration tests are handled by Firebase Test Lab below, so
|
||||||
|
# only run unit tests.
|
||||||
|
# Must come after build-examples.
|
||||||
- ./script/tool_runner.sh native-test --android --no-integration
|
- ./script/tool_runner.sh native-test --android --no-integration
|
||||||
|
# TODO(stuartmorgan): Copy firebase_test_lab_script from flutter/plugins
|
||||||
|
# once https://github.com/flutter/flutter/issues/119730 is resolved.
|
||||||
|
# firebase_test_lab_script:
|
||||||
# Upload the full lint results to Cirrus to display in the results UI.
|
# Upload the full lint results to Cirrus to display in the results UI.
|
||||||
always:
|
always:
|
||||||
android-lint_artifacts:
|
android-lint_artifacts:
|
||||||
@ -268,6 +288,9 @@ task:
|
|||||||
### Web tasks ###
|
### Web tasks ###
|
||||||
- name: web-platform_tests
|
- name: web-platform_tests
|
||||||
env:
|
env:
|
||||||
|
matrix:
|
||||||
|
PACKAGE_SHARDING: "--shardIndex 0 --shardCount 2"
|
||||||
|
PACKAGE_SHARDING: "--shardIndex 1 --shardCount 2"
|
||||||
matrix:
|
matrix:
|
||||||
CHANNEL: "master"
|
CHANNEL: "master"
|
||||||
CHANNEL: "stable"
|
CHANNEL: "stable"
|
||||||
@ -277,12 +300,7 @@ task:
|
|||||||
build_script:
|
build_script:
|
||||||
- ./script/tool_runner.sh build-examples --web
|
- ./script/tool_runner.sh build-examples --web
|
||||||
drive_script:
|
drive_script:
|
||||||
# google_identity_services_web tests need Dart >=2.17, which is not available in stable.
|
- ./script/tool_runner.sh drive-examples --web
|
||||||
- if [[ "$CHANNEL" == "master" ]]; then
|
|
||||||
- ./script/tool_runner.sh drive-examples --web
|
|
||||||
- else
|
|
||||||
- ./script/tool_runner.sh drive-examples --web --exclude=google_identity_services_web
|
|
||||||
- fi
|
|
||||||
- name: web_benchmarks_test
|
- name: web_benchmarks_test
|
||||||
env:
|
env:
|
||||||
matrix:
|
matrix:
|
||||||
@ -295,19 +313,6 @@ task:
|
|||||||
- cd ../..
|
- cd ../..
|
||||||
- flutter packages get
|
- flutter packages get
|
||||||
- dart testing/web_benchmarks_test.dart
|
- dart testing/web_benchmarks_test.dart
|
||||||
- name: dart_unit_tests
|
|
||||||
env:
|
|
||||||
matrix:
|
|
||||||
CHANNEL: "master"
|
|
||||||
CHANNEL: "stable"
|
|
||||||
unit_test_script:
|
|
||||||
- ./script/tool_runner.sh test --exclude=script/configs/dart_unit_tests_exceptions.yaml
|
|
||||||
pathified_unit_test_script:
|
|
||||||
# Run tests with path-based dependencies to ensure that publishing
|
|
||||||
# the changes won't break tests of other packages in the repository
|
|
||||||
# that depend on it.
|
|
||||||
- ./script/tool_runner.sh make-deps-path-based --target-dependencies-with-non-breaking-updates
|
|
||||||
- $PLUGIN_TOOL_COMMAND test --run-on-dirty-packages --exclude=script/configs/dart_unit_tests_exceptions.yaml
|
|
||||||
|
|
||||||
# macOS tasks.
|
# macOS tasks.
|
||||||
task:
|
task:
|
||||||
|
Reference in New Issue
Block a user