mirror of
https://github.com/flutter/packages.git
synced 2025-06-19 13:38:53 +08:00
[ci] Split android-platform_tests in 2 shards (#2577)
This commit is contained in:
@ -182,6 +182,9 @@ task:
|
|||||||
### Android tasks ###
|
### Android tasks ###
|
||||||
- name: android-platform_tests
|
- name: android-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"
|
||||||
|
@ -8,6 +8,9 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|||||||
REPO_DIR="$(dirname "$SCRIPT_DIR")"
|
REPO_DIR="$(dirname "$SCRIPT_DIR")"
|
||||||
|
|
||||||
# The tool expects to be run from the repo root.
|
# The tool expects to be run from the repo root.
|
||||||
|
# PACKAGE_SHARDING is (optionally) set from Cirrus. See .cirrus.yml
|
||||||
cd "$REPO_DIR"
|
cd "$REPO_DIR"
|
||||||
dart pub global run flutter_plugin_tools "$@" --packages-for-branch \
|
dart pub global run flutter_plugin_tools "$@" \
|
||||||
--log-timing $BUILD_SHARDING
|
--packages-for-branch \
|
||||||
|
--log-timing \
|
||||||
|
$PACKAGE_SHARDING
|
||||||
|
Reference in New Issue
Block a user