1
1
---
2
+ # Common task configurations.
3
+ .unittests : &unittests
4
+ build_flags : ${{ test_flags }}
5
+ test_flags : ${{ test_flags }}
6
+ test_targets :
7
+ - " //src/..."
8
+ build_targets :
9
+ - " //src/..."
10
+
11
+ .integration_tests : &integration_tests
12
+ name : " Integration Tests"
13
+ platform : ${{ platform.name }}
14
+ environment :
15
+ ANDROID_NDK_HOME : ${{ platform.android_ndk_home }}
16
+ test_flags : ${{ integration_shard_flags }}
17
+ test_targets :
18
+ - //examples:all
19
+
20
+ # Common platform configurations.
21
+ .ubuntu2404 : &ubuntu2404
22
+ platform : ubuntu2404
23
+ environment :
24
+ ANDROID_NDK_HOME : /opt/android-ndk-r25b
25
+
26
+ .ubuntu2204 : &ubuntu2204
27
+ platform : ubuntu2204
28
+ environment :
29
+ ANDROID_NDK_HOME : /opt/android-ndk-r25b
30
+
31
+ .macos : &macos
32
+ platform : macos
33
+ environment :
34
+ ANDROID_NDK_HOME : /Users/buildkite/android-ndk-r25b
35
+
36
+ # bazelci pipeline
2
37
matrix :
3
- unittest_platform :
4
- - ubuntu2404
5
- - ubuntu2204
6
- integration_platform :
7
- - ubuntu2404
8
- - ubuntu2204
9
38
integration_shard_flags :
10
39
- ["--test_tag_filters=shard_0", "--config=rbe"]
11
40
- ["--test_tag_filters=shard_1", "--config=rbe"]
12
41
- ["--test_tag_filters=shard_2", "--config=rbe"]
13
- # - macos
14
- # - windows re-enable when rules_bazel_integration_test can support custom test runner on windows.
15
42
test_flags :
16
43
- ["--enable_bzlmod=true"]
17
44
validate_config : 1
@@ -22,21 +49,16 @@ buildifier:
22
49
# keep this argument in sync with .pre-commit-config.yaml
23
50
warnings : " -confusing-name,-constant-glob,-duplicated-name,-function-docstring,-function-docstring-args,-function-docstring-header,-module-docstring,-name-conventions,-no-effect,-constant-glob,-provider-params,-print,-rule-impl-return,-bzl-visibility,-unnamed-macro,-uninitialized,-unreachable"
24
51
tasks :
25
- unittests :
26
- name : " Unit Tests"
27
- platform : ${{ unittest_platform }}
28
- build_flags : ${{ test_flags }}
29
- test_flags : ${{ test_flags }}
30
- test_targets :
31
- - " //src/..."
32
- build_targets :
33
- - " //src/..."
34
- integration_tests :
35
- name : " Integration Tests"
36
- platform : ${{ integration_platform }}
37
- test_flags : ${{ integration_shard_flags }}
38
- test_targets :
39
- - //examples:all
52
+ macos_unittests :
53
+ << : [ *macos, *unittests ]
54
+ ubuntu2404_unittests :
55
+ << : [*ubuntu2404, *unittests]
56
+ ubuntu2404_integration_tests :
57
+ << : [*ubuntu2404, *integration_tests]
58
+ ubuntu2204_unittests :
59
+ << : [*ubuntu2204, *unittests]
60
+ ubuntu2204_integration_tests :
61
+ << : [*ubuntu2204, *integration_tests]
40
62
rbe_ubuntu1604 :
41
63
test_targets :
42
64
- " --"
52
74
- " --strategy=KotlinCompile=remote"
53
75
stardoc :
54
76
name : Stardoc api documentation
55
- platform : ubuntu2404
77
+ << : * ubuntu2404
56
78
build_flags :
57
79
- " --enable_bzlmod=true"
58
80
build_targets :
61
83
- //docs:are_docs_up_to_date_test
62
84
ktlint :
63
85
name : KtLint
64
- platform : ubuntu2404
86
+ << : * ubuntu2404
65
87
test_targets :
66
88
- //...
67
89
test_flags :
0 commit comments