Skip to content

Commit 677b43a

Browse files
[ci] Remove repo tooling (flutter#7172)
* Remove tooling * Remove CI testing of tooling * Switch invocations to published version * Update tool_runner.sh * Update Cirrus * Fix global run command * Update stale comment * Re-add a minimal stub * Roll forward
1 parent 7a7e43e commit 677b43a

File tree

86 files changed

+44
-27661
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+44
-27661
lines changed

.ci.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,6 @@ targets:
281281
{"dependency": "vs_build", "version": "version:vs2019"}
282282
]
283283
284-
- name: Windows plugin_tools_tests
285-
recipe: plugins/plugins
286-
timeout: 30
287-
properties:
288-
add_recipes_cq: "true"
289-
target_file: plugin_tools_tests.yaml
290-
channel: master
291-
version_file: flutter_master.version
292-
293284
- name: Linux ci_yaml plugins roller
294285
recipe: infra/ci_yaml
295286
timeout: 30

.ci/scripts/build_examples_win32.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Use of this source code is governed by a BSD-style license that can be
44
# found in the LICENSE file.
55

6-
dart ./script/tool/bin/flutter_plugin_tools.dart build-examples --windows \
6+
dart pub global run flutter_plugin_tools build-examples --windows \
77
--packages-for-branch --log-timing

.ci/scripts/create_all_plugins_app.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Use of this source code is governed by a BSD-style license that can be
44
# found in the LICENSE file.
55

6-
dart ./script/tool/bin/flutter_plugin_tools.dart create-all-packages-app \
6+
dart pub global run flutter_plugin_tools create-all-packages-app \
77
--output-dir=. --exclude script/configs/exclude_all_packages_app.yaml

.ci/scripts/drive_examples_win32.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Use of this source code is governed by a BSD-style license that can be
44
# found in the LICENSE file.
55

6-
dart ./script/tool/bin/flutter_plugin_tools.dart drive-examples --windows \
6+
dart pub global run flutter_plugin_tools drive-examples --windows \
77
--exclude=script/configs/exclude_integration_win32.yaml --packages-for-branch --log-timing

.ci/scripts/native_test_win32.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Use of this source code is governed by a BSD-style license that can be
44
# found in the LICENSE file.
55

6-
dart ./script/tool/bin/flutter_plugin_tools.dart native-test --windows \
6+
dart pub global run flutter_plugin_tools native-test --windows \
77
--no-integration --packages-for-branch --log-timing

.ci/scripts/plugin_tools_tests.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

.ci/scripts/prepare_tool.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
# To set FETCH_HEAD for "git merge-base" to work
77
git fetch origin main
88

9-
cd script/tool
10-
dart pub get
9+
# Pinned version of the plugin tools, to avoid breakage in this repository
10+
# when pushing updates from flutter/packages.
11+
dart pub global activate flutter_plugin_tools 0.13.4+3

.ci/targets/plugin_tools_tests.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.cirrus.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ gcp_credentials: ENCRYPTED[!3a93d98d7c95a41f5033834ef30e50928fc5d81239dc632b153c
44
only_if: $CIRRUS_TAG == '' && ($CIRRUS_PR != '' || $CIRRUS_BRANCH == 'main')
55
env:
66
CHANNEL: "master" # Default to master when not explicitly set by a task.
7-
PLUGIN_TOOL_COMMAND: "dart ./script/tool/bin/flutter_plugin_tools.dart"
7+
PLUGIN_TOOL_COMMAND: "dart pub global run flutter_plugin_tools"
88

99
install_chrome_linux_template: &INSTALL_CHROME_LINUX
1010
env:
@@ -77,10 +77,6 @@ task:
7777
namespace: default
7878
matrix:
7979
### Platform-agnostic tasks ###
80-
- name: Linux plugin_tools_tests
81-
script:
82-
- cd script/tool
83-
- dart pub run test
8480
# Repository rules and best-practice enforcement.
8581
# Only channel-agnostic tests should go here since it is only run once
8682
# (on Flutter master).
@@ -124,9 +120,6 @@ task:
124120
matrix:
125121
CHANNEL: "master"
126122
CHANNEL: "stable"
127-
analyze_tool_script:
128-
- cd script/tool
129-
- dart analyze --fatal-infos
130123
analyze_script:
131124
# DO NOT change the custom-analysis argument here without changing the Dart repo.
132125
# See the comment in script/configs/custom_analysis.yaml for details.

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ jobs:
3131
with:
3232
fetch-depth: 0 # Fetch all history so the tool can get all the tags to determine version.
3333
- name: Set up tools
34-
run: dart pub get
35-
working-directory: ${{ github.workspace }}/script/tool
34+
run: dart pub global activate flutter_plugin_tools 0.13.4+3
3635

3736
# This workflow should be the last to run. So wait for all the other tests to succeed.
3837
- name: Wait on all tests
@@ -50,5 +49,5 @@ jobs:
5049
run: |
5150
git config --global user.name ${{ secrets.USER_NAME }}
5251
git config --global user.email ${{ secrets.USER_EMAIL }}
53-
dart ./script/tool/lib/src/main.dart publish --all-changed --base-sha=HEAD~ --skip-confirmation --remote=origin
52+
dart pub global run flutter_plugin_tools publish --all-changed --base-sha=HEAD~ --skip-confirmation --remote=origin
5453
env: {PUB_CREDENTIALS: "${{ secrets.PUB_CREDENTIALS }}"}

0 commit comments

Comments
 (0)