mirror of
https://github.com/flutter/packages.git
synced 2025-08-06 17:28:42 +08:00

Updates to better align with the current flutter/plugins tooling: - Pulls the latest flutter_plugin_tools - Enables the new version-check functionality - Enables the new license-check functionality - Switches over to the new publish check functionality - Moves format checking to a bot that does several of the very fast checks, leaving tests as their own bot - Switches incremental_build.sh to use the new --run-on-changed-packages functionality instead of the bash check_changed_packages - Moves check_changed_packages into local_tests.sh to minimize the chances of future new code trying to use it, as it is now legacy. - Renames incremental_build.sh to tool_runner.sh, to better match its current behavior/use
101 lines
3.2 KiB
YAML
101 lines
3.2 KiB
YAML
gcp_credentials: ENCRYPTED[1816835da1e936dabb469b51501856ec8468676e35e967bd0fd720a815498e5ee6c8a6a79219ce273f67bcb8f1aa948a]
|
|
|
|
env:
|
|
CHANNEL: "master" # Default to master when not explicitly set by a task.
|
|
|
|
tool_setup_template: &TOOL_SETUP_TEMPLATE
|
|
tool_setup_script:
|
|
- git fetch origin master # To set FETCH_HEAD for "git merge-base" to work
|
|
# Pinned version of the plugin tools, to avoid breakage in this repository
|
|
# when pushing updates from flutter/plugins.
|
|
- pub global activate flutter_plugin_tools 0.1.1
|
|
|
|
flutter_upgrade_template: &FLUTTER_UPGRADE_TEMPLATE
|
|
upgrade_flutter_script:
|
|
- flutter channel $CHANNEL
|
|
- flutter upgrade
|
|
- flutter doctor
|
|
<< : *TOOL_SETUP_TEMPLATE
|
|
|
|
task:
|
|
gke_container:
|
|
dockerfile: .ci/Dockerfile
|
|
builder_image_name: docker-builder # gce vm image
|
|
builder_image_project: flutter-cirrus
|
|
cluster_name: test-cluster
|
|
zone: us-central1-a
|
|
namespace: default
|
|
cpu: 4
|
|
memory: 8G
|
|
<< : *FLUTTER_UPGRADE_TEMPLATE
|
|
matrix:
|
|
- name: format+analyze
|
|
format_script: ./script/tool_runner.sh format --fail-on-change --clang-format=clang-format-5.0
|
|
license_script: pub global run flutter_plugin_tools license-check
|
|
analyze_script: ./script/tool_runner.sh analyze --custom-analysis=web_benchmarks/testing/test_app
|
|
- name: publishable
|
|
version_script: ./script/tool_runner.sh version-check
|
|
publishable_script: ./script/tool_runner.sh publish-check
|
|
depends_on:
|
|
- format+analyze
|
|
- name: test
|
|
script: ./script/tool_runner.sh test
|
|
depends_on:
|
|
- format+analyze
|
|
- name: build-apks+java-test
|
|
env:
|
|
matrix:
|
|
CHANNEL: "master"
|
|
CHANNEL: "stable"
|
|
matrix:
|
|
BUILD_SHARDING: "--shardIndex 0 --shardCount 2"
|
|
BUILD_SHARDING: "--shardIndex 1 --shardCount 2"
|
|
script:
|
|
- ./script/tool_runner.sh build-examples --apk
|
|
- ./script/tool_runner.sh java-test # must come after apk build
|
|
depends_on:
|
|
- format+analyze
|
|
- name: web_benchmarks_test
|
|
install_chromium_script:
|
|
- ./script/install_chromium.sh
|
|
script:
|
|
- export CHROME_EXECUTABLE=$(pwd)/.chromium/chrome-linux/chrome
|
|
- cd packages/web_benchmarks/testing/test_app
|
|
- flutter packages get
|
|
- cd ../..
|
|
- flutter packages get
|
|
- dart testing/web_benchmarks_test.dart
|
|
|
|
task:
|
|
name: build-ipas
|
|
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
|
|
osx_instance:
|
|
image: big-sur-xcode-12.4
|
|
env:
|
|
PATH: $PATH:/usr/local/bin
|
|
matrix:
|
|
CHANNEL: "master"
|
|
CHANNEL: "stable"
|
|
matrix:
|
|
BUILD_SHARDING: "--shardIndex 0 --shardCount 2"
|
|
BUILD_SHARDING: "--shardIndex 1 --shardCount 2"
|
|
<< : *FLUTTER_UPGRADE_TEMPLATE
|
|
build_script:
|
|
- ./script/tool_runner.sh build-examples --ipa
|
|
|
|
task:
|
|
name: local_tests
|
|
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
|
|
osx_instance:
|
|
image: big-sur-xcode-12.4
|
|
env:
|
|
PATH: $PATH:/usr/local/bin
|
|
matrix:
|
|
CHANNEL: "master"
|
|
CHANNEL: "stable"
|
|
<< : *FLUTTER_UPGRADE_TEMPLATE
|
|
clang_format_setup_script:
|
|
- brew install clang-format
|
|
build_script:
|
|
- ./script/local_tests.sh
|