From 05a51d13a447c51c9a367c0a79983cd27b2472e9 Mon Sep 17 00:00:00 2001 From: Stuart Morgan Date: Fri, 16 Jun 2023 11:22:09 -0400 Subject: [PATCH] [ci] Add LUCI version of build-all for web Adds a new Linux_web configuration, and an initial test (build-all-packages) using it. This is the simplest web test since it doesn't actually run anything, so starting with this one as a foundation to test future web-based tests. Part of https://github.com/flutter/flutter/issues/114373 --- .ci.yaml | 28 +++++++++++++++++++++++++ .ci/targets/web_build_all_packages.yaml | 10 +++++++++ 2 files changed, 38 insertions(+) create mode 100644 .ci/targets/web_build_all_packages.yaml diff --git a/.ci.yaml b/.ci.yaml index e44c1479c26..564b89ff459 100644 --- a/.ci.yaml +++ b/.ci.yaml @@ -12,6 +12,15 @@ platform_properties: linux: properties: os: Linux + linux_web: + properties: + dependencies: >- + [ + {"dependency": "chrome_and_driver", "version": "version:114.0"} + ] + os: Ubuntu + cores: "8" + device_type: none windows: properties: dependencies: > @@ -58,6 +67,25 @@ targets: channel: master version_file: flutter_master.version + ### Web tasks ### + - name: Linux_web web_build_all_packages master + bringup: true # New target + recipe: packages/packages + timeout: 30 + properties: + version_file: flutter_master.version + target_file: web_build_all_packages.yaml + channel: master + + - name: Linux_web web_build_all_packages stable + bringup: true # New target + recipe: packages/packages + timeout: 30 + properties: + version_file: flutter_stable.version + target_file: web_build_all_packages.yaml + channel: stable + ### iOS+macOS tasks ### # TODO(stuartmorgan): Move this to ARM once google_maps_flutter has ARM # support. `pod lint` makes a synthetic target that doesn't respect the diff --git a/.ci/targets/web_build_all_packages.yaml b/.ci/targets/web_build_all_packages.yaml new file mode 100644 index 00000000000..d3b7ae01072 --- /dev/null +++ b/.ci/targets/web_build_all_packages.yaml @@ -0,0 +1,10 @@ +tasks: + - name: prepare tool + script: .ci/scripts/prepare_tool.sh + - name: create all_packages app + script: .ci/scripts/create_all_packages_app.sh + # No debug version, unlike the other platforms, since web does not support + # debug builds. + - name: build all_packages app for Web release + script: .ci/scripts/build_all_packages_app.sh + args: ["web", "release"]