[go: nahoru, domu]

Skip to content

Commit

Permalink
[ci] Split android-platform_tests in 2 shards (flutter#2577)
Browse files Browse the repository at this point in the history
  • Loading branch information
ditman committed Sep 8, 2022
1 parent ba3a520 commit 6df723c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ task:
### Android tasks ###
- name: android-platform_tests
env:
matrix:
PACKAGE_SHARDING: "--shardIndex 0 --shardCount 2"
PACKAGE_SHARDING: "--shardIndex 1 --shardCount 2"
matrix:
CHANNEL: "master"
CHANNEL: "stable"
Expand Down
7 changes: 5 additions & 2 deletions script/tool_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
REPO_DIR="$(dirname "$SCRIPT_DIR")"

# The tool expects to be run from the repo root.
# PACKAGE_SHARDING is (optionally) set from Cirrus. See .cirrus.yml
cd "$REPO_DIR"
dart pub global run flutter_plugin_tools "$@" --packages-for-branch \
--log-timing $BUILD_SHARDING
dart pub global run flutter_plugin_tools "$@" \
--packages-for-branch \
--log-timing \
$PACKAGE_SHARDING

0 comments on commit 6df723c

Please sign in to comment.