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

Commit 5cf141f

Browse files
authored
Add linux_clang_tidy builder. (#41990)
This builder run android and host clang tidy in an engine v2 build. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
1 parent 17d5100 commit 5cf141f

File tree

2 files changed

+102
-0
lines changed

2 files changed

+102
-0
lines changed

.ci.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,14 @@ targets:
265265
drone_dimensions:
266266
- os=Linux
267267

268+
- name: Linux linux_clang_tidy
269+
bringup: true
270+
recipe: engine_v2/engine_v2
271+
timeout: 60
272+
properties:
273+
release_build: "true"
274+
config_name: linux_clang_tidy
275+
268276
- name: Linux linux_arm_host_engine
269277
recipe: engine_v2/engine_v2
270278
timeout: 60

ci/builders/linux_clang_tidy.json

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
"builds": [
3+
{
4+
"archives": [],
5+
"drone_dimensions": [
6+
"device_type=none",
7+
"os=Linux"
8+
],
9+
"gn": [
10+
"--android",
11+
"--android-cpu",
12+
"arm64",
13+
"--no-lto"
14+
],
15+
"name": "android_debug_arm64",
16+
"ninja": {
17+
"config": "android_debug_arm64"
18+
}
19+
},
20+
{
21+
"archives": [],
22+
"drone_dimensions": [
23+
"device_type=none",
24+
"os=Linux"
25+
],
26+
"gn": [
27+
"--runtime-mode",
28+
"debug",
29+
"--prebuilt-dart-sdk",
30+
"--no-lto"
31+
],
32+
"name": "host_debug",
33+
"ninja": {
34+
"config": "host_debug"
35+
}
36+
}
37+
],
38+
"tests": [
39+
{
40+
"name": "test: lint host_debug",
41+
"recipe": "engine_v2/tester_engine",
42+
"drone_dimensions": [
43+
"device_type=none",
44+
"os=Linux",
45+
"cores=32"
46+
],
47+
"gclient_variables": {
48+
"download_android_deps": false
49+
},
50+
"dependencies": [
51+
"host_debug",
52+
"android_debug_arm64"
53+
],
54+
"tasks": [
55+
{
56+
"name": "test: lint host_debug",
57+
"parameters": [
58+
"--variant",
59+
"host_debug",
60+
"--lint-all",
61+
"--shard-id=1",
62+
"--shard-variants=android_debug_arm64"
63+
],
64+
"script": "flutter/ci/lint.sh"
65+
}
66+
]
67+
},
68+
{
69+
"name": "test: lint android_debug_arm64",
70+
"recipe": "engine_v2/tester_engine",
71+
"drone_dimensions": [
72+
"device_type=none",
73+
"os=Linux"
74+
],
75+
"dependencies": [
76+
"host_debug",
77+
"android_debug_arm64"
78+
],
79+
"tasks": [
80+
{
81+
"name": "test: lint android_debug_arm64",
82+
"parameters": [
83+
"--variant",
84+
"android_debug_arm64",
85+
"--lint-all",
86+
"--shard-id=0",
87+
"--shard-variants=host_debug"
88+
],
89+
"script": "flutter/ci/lint.sh"
90+
}
91+
]
92+
}
93+
]
94+
}

0 commit comments

Comments
 (0)