mirror of
https://github.com/flutter/packages.git
synced 2025-06-20 14:38:40 +08:00
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:
11
.cirrus.yml
11
.cirrus.yml
@ -8,7 +8,7 @@ tool_setup_template: &TOOL_SETUP_TEMPLATE
|
||||
- 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
|
||||
# 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
|
||||
upgrade_flutter_script:
|
||||
@ -53,7 +53,7 @@ task:
|
||||
script: ./script/tool_runner.sh test --exclude=flutter_image
|
||||
depends_on:
|
||||
- format+analyze
|
||||
- name: build-apks+java-test
|
||||
- name: android-build+platform-tests
|
||||
env:
|
||||
matrix:
|
||||
CHANNEL: "master"
|
||||
@ -63,7 +63,8 @@ task:
|
||||
BUILD_SHARDING: "--shardIndex 1 --shardCount 2"
|
||||
script:
|
||||
- ./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:
|
||||
- format+analyze
|
||||
- name: web_benchmarks_test
|
||||
@ -78,7 +79,7 @@ task:
|
||||
- dart testing/web_benchmarks_test.dart
|
||||
|
||||
task:
|
||||
name: build-ipas
|
||||
name: ios-build+platform-test
|
||||
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
|
||||
osx_instance:
|
||||
image: big-sur-xcode-12.4
|
||||
@ -92,7 +93,7 @@ task:
|
||||
BUILD_SHARDING: "--shardIndex 1 --shardCount 2"
|
||||
<< : *FLUTTER_UPGRADE_TEMPLATE
|
||||
build_script:
|
||||
- ./script/tool_runner.sh build-examples --ipa
|
||||
- ./script/tool_runner.sh build-examples --ios
|
||||
|
||||
task:
|
||||
name: local_tests
|
||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -25,7 +25,7 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0 # Fetch all history so the tool can get all the tags to determine version.
|
||||
- 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.
|
||||
- name: Wait on all tests
|
||||
|
@ -7,11 +7,7 @@ set -e
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
||||
REPO_DIR="$(dirname "$SCRIPT_DIR")"
|
||||
|
||||
# Set some default actions if run without arguments.
|
||||
ACTIONS=("$@")
|
||||
if [[ "${#ACTIONS[@]}" == 0 ]]; then
|
||||
ACTIONS=("test" "analyze" "java-test")
|
||||
fi
|
||||
|
||||
BRANCH_NAME="${BRANCH_NAME:-"$(git rev-parse --abbrev-ref HEAD)"}"
|
||||
if [[ "${BRANCH_NAME}" == "master" ]]; then
|
||||
|
Reference in New Issue
Block a user