[ci] Initial setup for Windows LUCI bots (#478)

Creates an initial set of scripts to do minimal testing on Windows, and
builders to run those scripts. The recipe the builders reference does
not currently exist, but will be brought up in parallel.

This follows exactly the same structure that was successfully deployed
to flutter/plugins.
This commit is contained in:
stuartmorgan
2021-10-06 11:47:22 -04:00
committed by GitHub
parent 5929818706
commit 05bcffa295
6 changed files with 73 additions and 4 deletions

View File

@ -14,8 +14,48 @@ platform_properties:
properties:
fuchsia_ctl_version: ""
os: Linux
windows:
properties:
caches: >-
[
{"name": "vsbuild", "path": "vsbuild"},
{"name": "pub_cache", "path": ".pub-cache"}
]
dependencies: >
[
{"dependency": "certs"}
]
device_type: none
os: Windows
targets:
- name: Windows win32-platform_tests master
bringup: true
recipe: packages/packages
timeout: 30
properties:
add_recipes_cq: "true"
target_file: windows_build_and_platform_tests.yaml
dependencies: >
[
{"dependency": "vs_build"}
]
scheduler: luci
- name: Windows win32-platform_tests stable
bringup: true
recipe: packages/packages
timeout: 30
properties:
add_recipes_cq: "true"
target_file: windows_build_and_platform_tests.yaml
channel: stable
dependencies: >
[
{"dependency": "vs_build"}
]
scheduler: luci
- name: Linux fuchsia_ctl
postsubmit: false
recipe: fuchsia_ctl

View File

@ -0,0 +1,7 @@
#!/bin/bash
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
dart pub global run flutter_plugin_tools build-examples --windows \
--packages-for-branch

View File

@ -0,0 +1,7 @@
#!/bin/bash
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
dart pub global run flutter_plugin_tools native-test --windows \
--no-integration --packages-for-branch

11
.ci/scripts/prepare_tool.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# To set FETCH_HEAD for "git merge-base" to work
git fetch origin master
# Pinned version of the plugin tools, to avoid breakage in this repository
# when pushing updates from flutter/plugins.
dart pub global activate flutter_plugin_tools 0.7.1

View File

@ -0,0 +1,7 @@
tasks:
- name: prepare tool
script: .ci/scripts/prepare_tool.sh
- name: build examples (Win32)
script: .ci/scripts/build_examples_win32.sh
- name: native unit tests (Win32)
script: .ci/scripts/native_test_win32.sh

View File

@ -5,10 +5,7 @@ env:
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.
- dart pub global activate flutter_plugin_tools 0.7.1
- .ci/scripts/prepare_tool.sh
flutter_upgrade_template: &FLUTTER_UPGRADE_TEMPLATE
upgrade_flutter_script: