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

Commit 62e8380

Browse files
Split some Cirrus script steps (#4112)
It is much easier to use the results UI for Cirrus tasks when each major portion of the script is its own script section, since that causes it to be displayed separately (with its own timing, logs, etc.) This has already been done for many tasks; this applies it to some that were missing it.
1 parent a02b8f2 commit 62e8380

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

.cirrus.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,12 @@ task:
5050
- cd script/tool
5151
- CIRRUS_BUILD_ID=null pub run test
5252
- name: publishable
53-
script:
54-
- ./script/tool_runner.sh version-check
55-
- ./script/tool_runner.sh publish-check
53+
version_check_script: ./script/tool_runner.sh version-check
54+
publish_check_script: ./script/tool_runner.sh publish-check
5655
- name: format
5756
format_script: ./script/tool_runner.sh format --fail-on-change
5857
pubspec_script: ./script/tool_runner.sh pubspec-check
59-
license_script:
60-
- dart $PLUGIN_TOOL license-check
58+
license_script: dart $PLUGIN_TOOL license-check
6159
- name: test
6260
env:
6361
matrix:
@@ -139,27 +137,32 @@ task:
139137
CHANNEL: "stable"
140138
MAPS_API_KEY: ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
141139
GCLOUD_FIREBASE_TESTLAB_KEY: ENCRYPTED[07586610af1fdfc894e5969f70ef2458341b9b7e9c3b7c4225a663b4a48732b7208a4d91c3b7d45305a6b55fa2a37fc4]
142-
script:
140+
build_script:
143141
# Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
144142
# might include non-ASCII characters which makes Gradle crash.
145-
# See: https://github.com/flutter/flutter/issues/24935
146-
# This is a temporary workaround until we figure how to properly configure
147-
# a UTF8 locale on Cirrus (or until the Gradle bug is fixed).
148-
# TODO(amirh): Set the locale to UTF8.
149-
- echo "$CIRRUS_CHANGE_MESSAGE" > /tmp/cirrus_change_message.txt
150-
- echo "$CIRRUS_COMMIT_MESSAGE" > /tmp/cirrus_commit_message.txt
143+
# TODO(stuartmorgan): See https://github.com/flutter/flutter/issues/24935
151144
- export CIRRUS_CHANGE_MESSAGE=""
152145
- export CIRRUS_COMMIT_MESSAGE=""
153146
- ./script/tool_runner.sh build-examples --apk
147+
java_test_script:
148+
# Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
149+
# might include non-ASCII characters which makes Gradle crash.
150+
# TODO(stuartmorgan): See https://github.com/flutter/flutter/issues/24935
151+
- export CIRRUS_CHANGE_MESSAGE=""
152+
- export CIRRUS_COMMIT_MESSAGE=""
154153
- ./script/tool_runner.sh java-test # must come after apk build
154+
firebase_test_lab_script:
155+
# Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
156+
# might include non-ASCII characters which makes Gradle crash.
157+
# TODO(stuartmorgan): See https://github.com/flutter/flutter/issues/24935
158+
- export CIRRUS_CHANGE_MESSAGE=""
159+
- export CIRRUS_COMMIT_MESSAGE=""
155160
- if [[ -n "$GCLOUD_FIREBASE_TESTLAB_KEY" ]]; then
156161
- echo $GCLOUD_FIREBASE_TESTLAB_KEY > ${HOME}/gcloud-service-key.json
157162
- ./script/tool_runner.sh firebase-test-lab --device model=flame,version=29 --device model=starqlteue,version=26
158163
- else
159164
- echo "This user does not have permission to run Firebase Test Lab tests."
160165
- fi
161-
- export CIRRUS_CHANGE_MESSAGE=`cat /tmp/cirrus_change_message.txt`
162-
- export CIRRUS_COMMIT_MESSAGE=`cat /tmp/cirrus_commit_message.txt`
163166
### Web tasks ###
164167
- name: build-web+drive-examples
165168
env:

0 commit comments

Comments
 (0)