mirror of
https://github.com/flutter/packages.git
synced 2025-06-27 04:37:07 +08:00
Don't use 'flutter upgrade' on Cirrus (#429)
This command isn't intended for CI use, and is also slower due to downloading artifacts that will be immidately discarded. See flutter/flutter#86037
This commit is contained in:
14
.cirrus.yml
14
.cirrus.yml
@ -12,9 +12,17 @@ tool_setup_template: &TOOL_SETUP_TEMPLATE
|
|||||||
|
|
||||||
flutter_upgrade_template: &FLUTTER_UPGRADE_TEMPLATE
|
flutter_upgrade_template: &FLUTTER_UPGRADE_TEMPLATE
|
||||||
upgrade_flutter_script:
|
upgrade_flutter_script:
|
||||||
- flutter channel $CHANNEL
|
# Ensure that the repository has all the branches.
|
||||||
- flutter upgrade
|
- cd $FLUTTER_HOME
|
||||||
- flutter doctor
|
- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
|
||||||
|
- git fetch origin
|
||||||
|
# Switch to the requested branch.
|
||||||
|
- git checkout $CHANNEL
|
||||||
|
# Reset to upstream branch, rather than using pull, since the base image
|
||||||
|
# can sometimes be in a state where it has diverged from upstream (!).
|
||||||
|
- git reset --hard @{u}
|
||||||
|
# Run doctor to allow auditing of what version of Flutter the run is using.
|
||||||
|
- flutter doctor -v
|
||||||
<< : *TOOL_SETUP_TEMPLATE
|
<< : *TOOL_SETUP_TEMPLATE
|
||||||
|
|
||||||
task:
|
task:
|
||||||
|
Reference in New Issue
Block a user