1
0
mirror of https://github.com/flutter/packages.git synced 2025-07-12 15:58:31 +08:00

Don't use 'flutter upgrade' on Cirrus ()

This command isn't intended for CI use, and is also slower due to
downloading artifacts that will be immidately discarded.

See 
This commit is contained in:
stuartmorgan
2021-08-04 11:40:51 -07:00
committed by GitHub
parent 5926d01770
commit ae0ab86373

@ -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: