Update flutter_plugin_tools to 0.5.0 (#441)

Rolls to the latest release of flutter_plugin_tools, updating calls for breaking changes to flags.

Other minor changes:
- Removes the default set of actions from `tool_runner.sh` since it's never used, and the set of things it runs is a very obsolete subset at this point; it's better to require people to choose specific actions.
- Renames some tasks to match recent renaming in flutter/plugins.
This commit is contained in:
stuartmorgan
2021-08-18 10:50:36 -07:00
committed by GitHub
parent 5305a7cf12
commit 035ba3ef55
3 changed files with 7 additions and 10 deletions

View File

@ -8,7 +8,7 @@ tool_setup_template: &TOOL_SETUP_TEMPLATE
- git fetch origin master # To set FETCH_HEAD for "git merge-base" to work - git fetch origin master # To set FETCH_HEAD for "git merge-base" to work
# Pinned version of the plugin tools, to avoid breakage in this repository # Pinned version of the plugin tools, to avoid breakage in this repository
# when pushing updates from flutter/plugins. # when pushing updates from flutter/plugins.
- dart pub global activate flutter_plugin_tools 0.3.0 - dart pub global activate flutter_plugin_tools 0.5.0
flutter_upgrade_template: &FLUTTER_UPGRADE_TEMPLATE flutter_upgrade_template: &FLUTTER_UPGRADE_TEMPLATE
upgrade_flutter_script: upgrade_flutter_script:
@ -53,7 +53,7 @@ task:
script: ./script/tool_runner.sh test --exclude=flutter_image script: ./script/tool_runner.sh test --exclude=flutter_image
depends_on: depends_on:
- format+analyze - format+analyze
- name: build-apks+java-test - name: android-build+platform-tests
env: env:
matrix: matrix:
CHANNEL: "master" CHANNEL: "master"
@ -63,7 +63,8 @@ task:
BUILD_SHARDING: "--shardIndex 1 --shardCount 2" BUILD_SHARDING: "--shardIndex 1 --shardCount 2"
script: script:
- ./script/tool_runner.sh build-examples --apk - ./script/tool_runner.sh build-examples --apk
- ./script/tool_runner.sh java-test # must come after apk build # Must come after apk build:
- ./script/tool_runner.sh native-test --android --no-integration
depends_on: depends_on:
- format+analyze - format+analyze
- name: web_benchmarks_test - name: web_benchmarks_test
@ -78,7 +79,7 @@ task:
- dart testing/web_benchmarks_test.dart - dart testing/web_benchmarks_test.dart
task: task:
name: build-ipas name: ios-build+platform-test
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true' use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
osx_instance: osx_instance:
image: big-sur-xcode-12.4 image: big-sur-xcode-12.4
@ -92,7 +93,7 @@ task:
BUILD_SHARDING: "--shardIndex 1 --shardCount 2" BUILD_SHARDING: "--shardIndex 1 --shardCount 2"
<< : *FLUTTER_UPGRADE_TEMPLATE << : *FLUTTER_UPGRADE_TEMPLATE
build_script: build_script:
- ./script/tool_runner.sh build-examples --ipa - ./script/tool_runner.sh build-examples --ios
task: task:
name: local_tests name: local_tests

View File

@ -25,7 +25,7 @@ jobs:
with: with:
fetch-depth: 0 # Fetch all history so the tool can get all the tags to determine version. fetch-depth: 0 # Fetch all history so the tool can get all the tags to determine version.
- name: Set up tools - name: Set up tools
run: dart pub global activate flutter_plugin_tools 0.3.0 run: dart pub global activate flutter_plugin_tools 0.5.0
# # This workflow should be the last to run. So wait for all the other tests to succeed. # # This workflow should be the last to run. So wait for all the other tests to succeed.
- name: Wait on all tests - name: Wait on all tests

View File

@ -7,11 +7,7 @@ set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)" SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
REPO_DIR="$(dirname "$SCRIPT_DIR")" REPO_DIR="$(dirname "$SCRIPT_DIR")"
# Set some default actions if run without arguments.
ACTIONS=("$@") ACTIONS=("$@")
if [[ "${#ACTIONS[@]}" == 0 ]]; then
ACTIONS=("test" "analyze" "java-test")
fi
BRANCH_NAME="${BRANCH_NAME:-"$(git rev-parse --abbrev-ref HEAD)"}" BRANCH_NAME="${BRANCH_NAME:-"$(git rev-parse --abbrev-ref HEAD)"}"
if [[ "${BRANCH_NAME}" == "master" ]]; then if [[ "${BRANCH_NAME}" == "master" ]]; then