mirror of
https://github.com/flutter/packages.git
synced 2025-06-29 22:33:11 +08:00
[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:
40
.ci.yaml
40
.ci.yaml
@ -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
|
||||
|
7
.ci/scripts/build_examples_win32.sh
Executable file
7
.ci/scripts/build_examples_win32.sh
Executable 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
|
7
.ci/scripts/native_test_win32.sh
Executable file
7
.ci/scripts/native_test_win32.sh
Executable 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
11
.ci/scripts/prepare_tool.sh
Executable 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
|
7
.ci/targets/windows_build_and_platform_tests.yaml
Normal file
7
.ci/targets/windows_build_and_platform_tests.yaml
Normal 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
|
@ -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:
|
||||
|
Reference in New Issue
Block a user