@@ -29,10 +29,10 @@ flutter_upgrade_template: &FLUTTER_UPGRADE_TEMPLATE
29
29
- git fetch origin
30
30
# Switch to the requested channel.
31
31
- git checkout $TARGET_TREEISH
32
- # When using a branch rather than a hash, reset to the upstream branch
33
- # rather than using pull, since the base image can sometimes be in a state
34
- # where it has diverged from upstream (!).
35
- - if [[ "$TARGET_TREEISH" == "$CHANNEL" ]]; then
32
+ # When using a branch rather than a hash or version tag , reset to the
33
+ # upstream branch rather than using pull, since the base image can sometimes
34
+ # be in a state where it has diverged from upstream (!).
35
+ - if [[ "$TARGET_TREEISH" == "$CHANNEL" ]] && [[ "$CHANNEL" != *"."* ]] ; then
36
36
- git reset --hard @{u}
37
37
- fi
38
38
# Run doctor to allow auditing of what version of Flutter the run is using.
55
55
always :
56
56
format_script : ./script/tool_runner.sh format --fail-on-change
57
57
license_script : dart pub global run flutter_plugin_tools license-check
58
- analyze_script : ./script/tool_runner.sh analyze --custom-analysis=web_benchmarks/testing/test_app,flutter_lints/example,rfw/example,metrics_center
58
+ analyze_script : ./script/tool_runner.sh analyze --custom-analysis=script/configs/custom_analysis.yaml
59
59
pubspec_script : ./script/tool_runner.sh pubspec-check
60
+ # Does a sanity check that packages at least pass analysis on the N-1 and N-2
61
+ # versions of Flutter stable if the package claims to support that version.
62
+ # This is to minimize accidentally making changes that break old versions
63
+ # (which we don't commit to supporting, but don't want to actively break)
64
+ # without updating the constraints.
65
+ # Note: The versions below should be manually updated after a new stable
66
+ # version comes out.
67
+ - name : legacy-version-analyze
68
+ depends_on : format+analyze
69
+ env :
70
+ matrix :
71
+ CHANNEL : " 2.5.3"
72
+ CHANNEL : " 2.8.1"
73
+ analyze_script :
74
+ - ./script/tool_runner.sh analyze --skip-if-not-supporting-flutter-version="$CHANNEL" --custom-analysis=script/configs/custom_analysis.yaml
60
75
- name : publishable
61
76
env :
62
77
# TODO(stuartmorgan): Remove once the fix for https://github.com/dart-lang/pub/issues/3152
0 commit comments