Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 07a13ed

Browse files
Try re-consolidated upgrade script
1 parent 35513e2 commit 07a13ed

File tree

2 files changed

+13
-27
lines changed

2 files changed

+13
-27
lines changed

.cirrus.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,34 @@ task:
99
dockerfile: .ci/Dockerfile
1010
env:
1111
INTEGRATION_TEST_PATH: "./packages/integration_test"
12+
CHANNEL: "master" # Default to master when not explicitly set by a task.
1213
setup_script:
14+
- flutter channel $CHANNEL
15+
- flutter upgrade
1316
- git fetch origin master # To set FETCH_HEAD for "git merge-base" to work
1417
matrix:
1518
### Platform-agnostic tasks ###
1619
- name: plugin_tools_tests
17-
upgrade_script: ./script/set_channel.sh master
1820
script:
1921
- cd script/tool
2022
- pub get
2123
- CIRRUS_BUILD_ID=null pub run test
2224
- name: publishable
23-
upgrade_script: ./script/set_channel.sh master
2425
script:
2526
- ./script/check_publish.sh
2627
- name: format
27-
upgrade_script: ./script/set_channel.sh master
2828
format_script: ./script/incremental_build.sh format --fail-on-change
2929
- name: test
3030
env:
3131
matrix:
3232
CHANNEL: "master"
3333
CHANNEL: "stable"
34-
upgrade_script: ./script/set_channel.sh $CHANNEL
3534
test_script:
3635
- ./script/incremental_build.sh test
3736
- name: analyze_master
3837
env:
3938
matrix:
4039
CHANNEL: "master"
41-
upgrade_script: ./script/set_channel.sh $CHANNEL
4240
script:
4341
- ./script/incremental_build.sh analyze
4442
## TODO(cyanglaz):
@@ -47,7 +45,6 @@ task:
4745
env:
4846
matrix:
4947
CHANNEL: "stable"
50-
upgrade_script: ./script/set_channel.sh $CHANNEL
5148
script:
5249
- find . -depth -type d -wholename '*_web/example' -exec rm -rf {} \;
5350
- ./script/incremental_build.sh analyze
@@ -57,7 +54,6 @@ task:
5754
matrix:
5855
CHANNEL: "master"
5956
CHANNEL: "stable"
60-
upgrade_script: ./script/set_channel.sh $CHANNEL
6157
script:
6258
- ./script/build_all_plugins_app.sh apk
6359
### Web tasks ###
@@ -66,14 +62,12 @@ task:
6662
matrix:
6763
CHANNEL: "master"
6864
CHANNEL: "stable"
69-
upgrade_script: ./script/set_channel.sh $CHANNEL
7065
script:
7166
- ./script/build_all_plugins_app.sh web
7267
- name: build-web-examples
7368
env:
7469
matrix:
7570
CHANNEL: "master"
76-
upgrade_script: ./script/set_channel.sh $CHANNEL
7771
build_script:
7872
- ./script/incremental_build.sh build-examples --web
7973
# TODO: Add driving examples (and move to heavy-workload group).
@@ -83,7 +77,6 @@ task:
8377
matrix:
8478
CHANNEL: "master"
8579
CHANNEL: "stable"
86-
upgrade_script: ./script/set_channel.sh $CHANNEL
8780
script:
8881
- flutter config --enable-linux-desktop
8982
- ./script/build_all_plugins_app.sh linux
@@ -92,7 +85,6 @@ task:
9285
matrix:
9386
CHANNEL: "master"
9487
CHANNEL: "stable"
95-
upgrade_script: ./script/set_channel.sh $CHANNEL
9688
build_script:
9789
- flutter config --enable-linux-desktop
9890
- ./script/incremental_build.sh build-examples --linux
@@ -112,7 +104,10 @@ task:
112104
dockerfile: .ci/Dockerfile-LegacyChrome
113105
env:
114106
INTEGRATION_TEST_PATH: "./packages/integration_test"
107+
CHANNEL: "master" # Default to master when not explicitly set by a task.
115108
setup_script:
109+
- flutter channel $CHANNEL
110+
- flutter upgrade
116111
- git fetch origin master # To set FETCH_HEAD for "git merge-base" to work
117112
matrix:
118113
- name: integration_web_smoke_test
@@ -122,7 +117,6 @@ task:
122117
CHANNEL: "stable"
123118
# Tests integration example test in web.
124119
only_if: "changesInclude('.cirrus.yml', 'packages/integration_test/**') || $CIRRUS_PR == ''"
125-
upgrade_script: ./script/set_channel.sh $CHANNEL
126120
install_script:
127121
- git clone https://github.com/flutter/web_installers.git
128122
- cd web_installers/packages/web_drivers/
@@ -146,7 +140,10 @@ task:
146140
memory: 12G
147141
env:
148142
INTEGRATION_TEST_PATH: "./packages/integration_test"
143+
CHANNEL: "master" # Default to master when not explicitly set by a task.
149144
setup_script:
145+
- flutter channel $CHANNEL
146+
- flutter upgrade
150147
- git fetch origin master # To set FETCH_HEAD for "git merge-base" to work
151148
matrix:
152149
### Android tasks ###
@@ -162,7 +159,6 @@ task:
162159
CHANNEL: "stable"
163160
MAPS_API_KEY: ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
164161
GCLOUD_FIREBASE_TESTLAB_KEY: ENCRYPTED[07586610af1fdfc894e5969f70ef2458341b9b7e9c3b7c4225a663b4a48732b7208a4d91c3b7d45305a6b55fa2a37fc4]
165-
upgrade_script: ./script/set_channel.sh $CHANNEL
166162
script:
167163
# Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
168164
# might include non-ASCII characters which makes Gradle crash.
@@ -192,7 +188,11 @@ task:
192188
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
193189
osx_instance:
194190
image: big-sur-xcode-12.3
191+
env:
192+
CHANNEL: "master" # Default to master when not explicitly set by a task.
195193
setup_script:
194+
- flutter channel $CHANNEL
195+
- flutter upgrade
196196
- git fetch origin master # To set FETCH_HEAD for "git merge-base" to work
197197
- sudo gem install cocoapods
198198
matrix:
@@ -212,7 +212,6 @@ task:
212212
matrix:
213213
CHANNEL: "master"
214214
CHANNEL: "stable"
215-
upgrade_script: ./script/set_channel.sh $CHANNEL
216215
script:
217216
- ./script/build_all_plugins_app.sh ios --no-codesign
218217
- name: build-ipas+drive-examples
@@ -231,7 +230,6 @@ task:
231230
create_simulator_script:
232231
- xcrun simctl list
233232
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-11 com.apple.CoreSimulator.SimRuntime.iOS-14-3 | xargs xcrun simctl boot
234-
upgrade_script: ./script/set_channel.sh $CHANNEL
235233
build_script:
236234
- ./script/incremental_build.sh build-examples --ipa
237235
- ./script/incremental_build.sh xctest --skip $PLUGINS_TO_SKIP_XCTESTS --ios-destination "platform=iOS Simulator,name=iPhone 11,OS=latest"
@@ -245,7 +243,6 @@ task:
245243
matrix:
246244
CHANNEL: "master"
247245
CHANNEL: "stable"
248-
upgrade_script: ./script/set_channel.sh $CHANNEL
249246
script:
250247
- flutter config --enable-macos-desktop
251248
- ./script/build_all_plugins_app.sh macos
@@ -255,7 +252,6 @@ task:
255252
CHANNEL: "master"
256253
CHANNEL: "stable"
257254
PATH: $PATH:/usr/local/bin
258-
upgrade_script: ./script/set_channel.sh $CHANNEL
259255
build_script:
260256
- flutter config --enable-macos-desktop
261257
- ./script/incremental_build.sh build-examples --macos --no-ipa

script/set_channel.sh

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

0 commit comments

Comments
 (0)