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

Commit e16901c

Browse files
Use the new flags in CI
1 parent 94fdf58 commit e16901c

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.cirrus.yml

+15-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,21 @@ task:
6868
- cd script/tool
6969
- dart pub run test
7070
- name: publishable
71-
version_check_script: ./script/tool_runner.sh version-check
71+
env:
72+
CHANGE_DESC: "$TMPDIR/change-description.txt"
73+
version_check_script:
74+
# For pre-submit, pass the PR description to the script to allow for
75+
# platform version breaking version change justifications.
76+
# For post-submit, ignore platform version breaking version changes.
77+
# The PR description isn't reliably part of the commit message, so using
78+
# the same flags as for presubmit would likely result in false-positive
79+
# post-submit failures.
80+
- if [[ $CIRRUS_PR == "" ]]; then
81+
- ./script/tool_runner.sh version-check --ignore-platform-interface-breaks
82+
- else
83+
- echo "$CIRRUS_CHANGE_MESSAGE" > "$CHANGE_DESC"
84+
- ./script/tool_runner.sh version-check --change-description-file="$CHANGE_DESC"
85+
- fi
7286
publish_check_script: ./script/tool_runner.sh publish-check
7387
- name: format
7488
format_script: ./script/tool_runner.sh format --fail-on-change

0 commit comments

Comments
 (0)