From dcdc9eda689e70c9d448fc91e90d0f3e8e77def7 Mon Sep 17 00:00:00 2001 From: chunhtai <47866232+chunhtai@users.noreply.github.com> Date: Tue, 10 May 2022 16:39:06 -0700 Subject: [PATCH] [ci] Add Windows Dart unit tests (#1794) --- .ci.yaml | 14 ++++++++++++++ .ci/scripts/dart_unit_tests.sh | 7 +++++++ .ci/targets/windows_dart_unit_tests.yaml | 5 +++++ 3 files changed, 26 insertions(+) create mode 100644 .ci/scripts/dart_unit_tests.sh create mode 100644 .ci/targets/windows_dart_unit_tests.yaml diff --git a/.ci.yaml b/.ci.yaml index ea445b2fbe..e1ae9c47e9 100644 --- a/.ci.yaml +++ b/.ci.yaml @@ -36,6 +36,20 @@ targets: {"dependency": "vs_build"} ] + - name: Windows dart_unit_tests master - packages + recipe: packages/packages + timeout: 30 + bringup: true + properties: + add_recipes_cq: "true" + target_file: windows_dart_unit_tests.yaml + channel: master + version_file: flutter_master.version + dependencies: > + [ + {"dependency": "vs_build"} + ] + - name: Windows win32-platform_tests master - packages recipe: packages/packages timeout: 30 diff --git a/.ci/scripts/dart_unit_tests.sh b/.ci/scripts/dart_unit_tests.sh new file mode 100644 index 0000000000..357e991528 --- /dev/null +++ b/.ci/scripts/dart_unit_tests.sh @@ -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 test --packages-for-branch \ + --log-timing diff --git a/.ci/targets/windows_dart_unit_tests.yaml b/.ci/targets/windows_dart_unit_tests.yaml new file mode 100644 index 0000000000..e06a497b7f --- /dev/null +++ b/.ci/targets/windows_dart_unit_tests.yaml @@ -0,0 +1,5 @@ +tasks: + - name: prepare tool + script: .ci/scripts/prepare_tool.sh + - name: custom package tests + script: .ci/scripts/dart_unit_tests.sh