Skip to content

Commit 27816d5

Browse files
authored
Merge pull request #1 from flutter/master
Update from origin
2 parents 8413efe + 0362219 commit 27816d5

File tree

3,198 files changed

+140239
-55256
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,198 files changed

+140239
-55256
lines changed

.ci.yaml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# Describes the targets run in continuous integration environment.
2+
#
3+
# Flutter infra uses this file to generate a checklist of tasks to be performed
4+
# for every commit.
5+
#
6+
# More information at:
7+
# * https://github.com/flutter/cocoon/blob/main/CI_YAML.md
8+
enabled_branches:
9+
- main
10+
- master
11+
12+
platform_properties:
13+
linux:
14+
properties:
15+
caches: >-
16+
[
17+
]
18+
dependencies: >
19+
[
20+
{"dependency": "curl"}
21+
]
22+
device_type: none
23+
os: Linux
24+
windows:
25+
properties:
26+
caches: >-
27+
[
28+
{"name": "vsbuild", "path": "vsbuild"},
29+
{"name": "pub_cache", "path": ".pub-cache"}
30+
]
31+
dependencies: >
32+
[
33+
{"dependency": "certs"}
34+
]
35+
device_type: none
36+
os: Windows
37+
38+
targets:
39+
- name: Windows win32-platform_tests master
40+
recipe: plugins/plugins
41+
timeout: 30
42+
properties:
43+
add_recipes_cq: "true"
44+
target_file: windows_build_and_platform_tests.yaml
45+
dependencies: >
46+
[
47+
{"dependency": "vs_build"}
48+
]
49+
scheduler: luci
50+
51+
- name: Windows win32-platform_tests stable
52+
recipe: plugins/plugins
53+
timeout: 30
54+
properties:
55+
add_recipes_cq: "true"
56+
target_file: windows_build_and_platform_tests.yaml
57+
channel: stable
58+
dependencies: >
59+
[
60+
{"dependency": "vs_build"}
61+
]
62+
scheduler: luci
63+
64+
- name: Windows windows-build_all_plugins master
65+
recipe: plugins/plugins
66+
timeout: 30
67+
properties:
68+
add_recipes_cq: "true"
69+
target_file: build_all_plugins.yaml
70+
dependencies: >
71+
[
72+
{"dependency": "vs_build"}
73+
]
74+
scheduler: luci
75+
76+
- name: Windows windows-build_all_plugins stable
77+
recipe: plugins/plugins
78+
timeout: 30
79+
properties:
80+
add_recipes_cq: "true"
81+
target_file: build_all_plugins.yaml
82+
channel: stable
83+
dependencies: >
84+
[
85+
{"dependency": "vs_build"}
86+
]
87+
scheduler: luci
88+
89+
- name: Windows uwp-platform_tests master
90+
recipe: plugins/plugins
91+
timeout: 30
92+
properties:
93+
add_recipes_cq: "true"
94+
target_file: uwp_build_and_platform_tests.yaml
95+
dependencies: >
96+
[
97+
{"dependency": "vs_build"}
98+
]
99+
scheduler: luci
100+
101+
- name: Windows plugin_tools_tests
102+
recipe: plugins/plugins
103+
timeout: 30
104+
properties:
105+
add_recipes_cq: "true"
106+
target_file: plugin_tools_tests.yaml
107+
scheduler: luci
108+
109+
- name: Linux ci_yaml plugins roller
110+
recipe: infra/ci_yaml
111+
timeout: 30
112+
scheduler: luci
113+
runIf:
114+
- .ci.yaml

.ci/Dockerfile

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
FROM cirrusci/flutter:stable
1+
# The Flutter version is not important here, since the CI scripts update Flutter
2+
# before running. What matters is that the base image is pinned to minimize
3+
# unintended changes when modifying this file.
4+
FROM cirrusci/flutter:2.2.2
25

3-
RUN sudo apt-get update -y
6+
RUN apt-get update -y
47

5-
RUN sudo apt-get install -y --no-install-recommends gnupg
8+
RUN apt-get install -y --no-install-recommends gnupg
69

710
# Add repo for gcloud sdk and install it
811
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | \
9-
sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
12+
sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
1013

1114
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | \
1215
sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
1316

14-
RUN sudo apt-get update && sudo apt-get install -y google-cloud-sdk && \
17+
RUN apt-get update && apt-get install -y google-cloud-sdk && \
1518
gcloud config set core/disable_usage_reporting true && \
1619
gcloud config set component_manager/disable_update_check true
1720

@@ -23,7 +26,21 @@ RUN yes | sdkmanager \
2326

2427
RUN yes | sdkmanager --licenses
2528

29+
# Install formatter.
30+
RUN apt-get install -y clang-format
31+
32+
# Install xvfb to allow running headless
33+
RUN apt-get install -y xvfb libegl1-mesa
34+
# Install Linux desktop build tool requirements.
35+
RUN apt-get install -y clang cmake ninja-build file pkg-config
36+
# Install necessary libraries.
37+
RUN apt-get install -y libgtk-3-dev libblkid-dev liblzma-dev libgcrypt20-dev
38+
2639
# Add repo for Google Chrome and install it
2740
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
2841
RUN echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
29-
RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends google-chrome-stable
42+
RUN apt-get update && apt-get install -y --no-install-recommends google-chrome-stable
43+
44+
# Make Chrome the default so http: has a handler for url_launcher tests.
45+
RUN apt-get install -y xdg-utils
46+
RUN xdg-settings set default-web-browser google-chrome.desktop

.ci/Dockerfile-LinuxDesktop

Lines changed: 0 additions & 31 deletions
This file was deleted.

.ci/dev/README.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

.ci/dev/try_builders.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

.ci/scripts/build_all_plugins.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
# Copyright 2013 The Flutter Authors. All rights reserved.
3+
# Use of this source code is governed by a BSD-style license that can be
4+
# found in the LICENSE file.
5+
6+
cd all_plugins
7+
flutter build windows --debug
8+
flutter build windows --release

.ci/scripts/build_examples_uwp.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# Copyright 2013 The Flutter Authors. All rights reserved.
3+
# Use of this source code is governed by a BSD-style license that can be
4+
# found in the LICENSE file.
5+
6+
dart ./script/tool/bin/flutter_plugin_tools.dart build-examples --winuwp \
7+
--packages-for-branch

.ci/scripts/build_examples_win32.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# Copyright 2013 The Flutter Authors. All rights reserved.
3+
# Use of this source code is governed by a BSD-style license that can be
4+
# found in the LICENSE file.
5+
6+
dart ./script/tool/bin/flutter_plugin_tools.dart build-examples --windows \
7+
--packages-for-branch

.ci/scripts/create_all_plugins_app.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# Copyright 2013 The Flutter Authors. All rights reserved.
3+
# Use of this source code is governed by a BSD-style license that can be
4+
# found in the LICENSE file.
5+
6+
dart ./script/tool/bin/flutter_plugin_tools.dart all-plugins-app \
7+
--output-dir=. --exclude script/configs/exclude_all_plugins_app.yaml

.ci/scripts/drive_examples_win32.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# Copyright 2013 The Flutter Authors. All rights reserved.
3+
# Use of this source code is governed by a BSD-style license that can be
4+
# found in the LICENSE file.
5+
6+
dart ./script/tool/bin/flutter_plugin_tools.dart drive-examples --windows \
7+
--packages-for-branch

.ci/scripts/native_test_win32.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# Copyright 2013 The Flutter Authors. All rights reserved.
3+
# Use of this source code is governed by a BSD-style license that can be
4+
# found in the LICENSE file.
5+
6+
dart ./script/tool/bin/flutter_plugin_tools.dart native-test --windows \
7+
--no-integration --packages-for-branch

.ci/scripts/plugin_tools_tests.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# Copyright 2013 The Flutter Authors. All rights reserved.
3+
# Use of this source code is governed by a BSD-style license that can be
4+
# found in the LICENSE file.
5+
6+
cd script/tool
7+
dart pub run test

.ci/scripts/prepare_tool.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
# Copyright 2013 The Flutter Authors. All rights reserved.
3+
# Use of this source code is governed by a BSD-style license that can be
4+
# found in the LICENSE file.
5+
6+
# To set FETCH_HEAD for "git merge-base" to work
7+
git fetch origin master
8+
9+
cd script/tool
10+
dart pub get

.ci/targets/build_all_plugins.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
tasks:
2+
- name: prepare tool
3+
script: .ci/scripts/prepare_tool.sh
4+
- name: create all_plugins app
5+
script: .ci/scripts/create_all_plugins_app.sh
6+
- name: build all_plugins
7+
script: .ci/scripts/build_all_plugins.sh

.ci/targets/plugin_tools_tests.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
tasks:
2+
- name: prepare tool
3+
script: .ci/scripts/prepare_tool.sh
4+
- name: tool unit tests
5+
script: .ci/scripts/plugin_tools_tests.sh
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
tasks:
2+
- name: prepare tool
3+
script: .ci/scripts/prepare_tool.sh
4+
- name: build examples (UWP)
5+
script: .ci/scripts/build_examples_uwp.sh
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
tasks:
2+
- name: prepare tool
3+
script: .ci/scripts/prepare_tool.sh
4+
- name: build examples (Win32)
5+
script: .ci/scripts/build_examples_win32.sh
6+
- name: native unit tests (Win32)
7+
script: .ci/scripts/native_test_win32.sh
8+
- name: drive examples (Win32)
9+
script: .ci/scripts/drive_examples_win32.sh

0 commit comments

Comments
 (0)