Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Add scripts for Windows LUCI recipe #4303

Merged
merged 3 commits into from
Sep 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ targets:
recipe: plugins/plugins
timeout: 30
properties:
target_file: windows_build_and_platform_tests.yaml
dependencies: >
[
{"dependency": "vs_build"}
Expand All @@ -49,6 +50,7 @@ targets:
recipe: plugins/plugins
timeout: 30
properties:
target_file: windows_build_and_platform_tests.yaml
channel: stable
dependencies: >
[
Expand Down
7 changes: 7 additions & 0 deletions .ci/scripts/build_examples_win32.sh
Original file line number Diff line number Diff line change
@@ -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 ./script/tool/bin/flutter_plugin_tools.dart build-examples --windows \
--packages-for-branch
7 changes: 7 additions & 0 deletions .ci/scripts/drive_examples_win32.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL our windows bots have bash, sounds like I can do some cleanup :-)

Copy link
Contributor Author

@stuartmorgan-g stuartmorgan-g Sep 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line wouldn't actually work on the Windows bot presumably (they run it with bash foo.sh), but I kept it for consistency with the existing bash scripts in the repo.

# 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 ./script/tool/bin/flutter_plugin_tools.dart drive-examples --windows \
--packages-for-branch
10 changes: 10 additions & 0 deletions .ci/scripts/prepare_tool.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/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

cd script/tool
dart pub get
8 changes: 8 additions & 0 deletions .ci/targets/windows_build_and_platform_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

tasks:
- name: "prepare tool"
script: .ci/scripts/prepare_tool.sh
- name: "build examples"
script: .ci/scripts/build_examples_win32.sh
- name: "drive examples"
script: .ci/scripts/drive_examples_win32.sh