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

Commit 1fff650

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

2 files changed

Lines changed: 3 additions & 27 deletions

File tree

.cirrus.yml

Lines changed: 3 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
@@ -122,7 +114,6 @@ task:
122114
CHANNEL: "stable"
123115
# Tests integration example test in web.
124116
only_if: "changesInclude('.cirrus.yml', 'packages/integration_test/**') || $CIRRUS_PR == ''"
125-
upgrade_script: ./script/set_channel.sh $CHANNEL
126117
install_script:
127118
- git clone https://github.com/flutter/web_installers.git
128119
- cd web_installers/packages/web_drivers/
@@ -162,7 +153,6 @@ task:
162153
CHANNEL: "stable"
163154
MAPS_API_KEY: ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
164155
GCLOUD_FIREBASE_TESTLAB_KEY: ENCRYPTED[07586610af1fdfc894e5969f70ef2458341b9b7e9c3b7c4225a663b4a48732b7208a4d91c3b7d45305a6b55fa2a37fc4]
165-
upgrade_script: ./script/set_channel.sh $CHANNEL
166156
script:
167157
# Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
168158
# might include non-ASCII characters which makes Gradle crash.
@@ -212,7 +202,6 @@ task:
212202
matrix:
213203
CHANNEL: "master"
214204
CHANNEL: "stable"
215-
upgrade_script: ./script/set_channel.sh $CHANNEL
216205
script:
217206
- ./script/build_all_plugins_app.sh ios --no-codesign
218207
- name: build-ipas+drive-examples
@@ -231,7 +220,6 @@ task:
231220
create_simulator_script:
232221
- xcrun simctl list
233222
- 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
235223
build_script:
236224
- ./script/incremental_build.sh build-examples --ipa
237225
- ./script/incremental_build.sh xctest --skip $PLUGINS_TO_SKIP_XCTESTS --ios-destination "platform=iOS Simulator,name=iPhone 11,OS=latest"
@@ -245,7 +233,6 @@ task:
245233
matrix:
246234
CHANNEL: "master"
247235
CHANNEL: "stable"
248-
upgrade_script: ./script/set_channel.sh $CHANNEL
249236
script:
250237
- flutter config --enable-macos-desktop
251238
- ./script/build_all_plugins_app.sh macos
@@ -255,7 +242,6 @@ task:
255242
CHANNEL: "master"
256243
CHANNEL: "stable"
257244
PATH: $PATH:/usr/local/bin
258-
upgrade_script: ./script/set_channel.sh $CHANNEL
259245
build_script:
260246
- flutter config --enable-macos-desktop
261247
- ./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)