| gcp_credentials: ENCRYPTED[!9409b709ab4de7293a70606cca13eaf42e9cbc704e8a6b4e3d2b09484cf997cbd2334e1eeafe23626ad07a726106df90!] | |
| # Run on PRs and main branch post submit only. Don't run tests when tagging. | |
| only_if: $CIRRUS_TAG == '' && ($CIRRUS_PR != '' || $CIRRUS_BRANCH == 'main') | |
| setup_template: &SETUP_TEMPLATE | |
| upgrade_flutter_script: | |
| - PINNED_VERSION=$(< .ci/flutter_master.version) | |
| # Ensure that the repository has everything. | |
| - cd $FLUTTER_HOME | |
| - git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" | |
| - git fetch origin | |
| # Switch to the pinned master version. | |
| - git checkout $TARGET_TREEISH | |
| # Run doctor to allow auditing of what version of Flutter the run is using. | |
| - flutter doctor -v | |
| tool_setup_script: | |
| - .ci/scripts/prepare_tool.sh | |
| task: | |
| << : *SETUP_TEMPLATE | |
| gke_container: | |
| dockerfile: .ci/Dockerfile | |
| builder_image_name: docker-builder-linux # gce vm image | |
| builder_image_project: flutter-cirrus | |
| cluster_name: test-cluster | |
| zone: us-central1-a | |
| namespace: default | |
| matrix: | |
| # TODO(stuartmorgan): Migrate this to LUCI; See check_version.sh. | |
| - name: version_check | |
| only_if: $CIRRUS_PR != '' | |
| version_script: | |
| - ./script/tool_runner.sh version-check --check-for-missing-changes --pr-labels="$CIRRUS_PR_LABELS" |