-
Notifications
You must be signed in to change notification settings - Fork 281
/
Copy pathpresubmit.yml
121 lines (121 loc) · 3.78 KB
/
presubmit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
---
validate_config: 1
tasks:
ubuntu2004:
name: "bazel test //test/..."
platform: ubuntu2004
shell_commands:
- mv tools/bazel.rc.buildkite tools/bazel.rc
- echo "import %workspace%/tools/bazel.rc" > .bazelrc
build_targets:
- "//test/..."
test_targets:
- "//test/..."
macos:
name: "bazel test //test/..."
platform: macos
shell_commands:
# Disable local disk caching on CI.
- mv tools/bazel.rc.buildkite tools/bazel.rc
- echo "import %workspace%/tools/bazel.rc" > .bazelrc
build_targets:
- "//test/..."
test_targets:
- "//test/..."
test_rules_scala_linux:
name: "./test_rules_scala"
platform: ubuntu2004
shell_commands:
# Install xmllint
- sudo apt update && sudo apt install --reinstall libxml2-utils -y
- "./test_rules_scala.sh"
test_rules_scala_linux_latest:
name: "./test_rules_scala (latest Bazel)"
platform: ubuntu2004
# Restore `bazel: latest` once Bazel 8 compatibility lands (#1625, #1652).
bazel: 7.x
shell_commands:
# Install xmllint
- sudo apt update && sudo apt install --reinstall libxml2-utils -y
- echo "build --enable_workspace" >> .bazelrc
- "./test_rules_scala.sh || buildkite-agent annotate --style 'warning' \"Optional build with latest Bazel version failed, [see here](${BUILDKITE_BUILD_URL}#${BUILDKITE_JOB_ID}) (It is not mandatory but worth checking)\""
test_rules_scala_macos:
name: "./test_rules_scala"
platform: macos
shell_commands:
- "./test_rules_scala.sh"
test_rules_scala_win:
name: "./test_rules_scala"
platform: windows
environment:
MSYS2_ARG_CONV_EXCL: "*"
batch_commands:
- "set PATH=/usr/bin;%PATH%" #Make sure bash uses msys commands over windows commands. (i.e. find).
- "bash -lc \"pacman --noconfirm --needed -S libxml2\"" #tests require xmllint
- "bash test_rules_scala.sh"
test_coverage_linux_6_5_0:
name: "./test_coverage"
platform: ubuntu2004
bazel: 6.5.0
shell_commands:
- "./test_coverage.sh"
test_coverage_macos_6.5.0:
name: "./test_coverage"
platform: macos
bazel: 6.5.0
shell_commands:
- "./test_coverage.sh"
test_reproducibility_linux:
name: "./test_reproducibility.sh"
platform: ubuntu1804
shell_commands:
- "./test_reproducibility.sh"
test_reproducibility_macos:
name: "./test_reproducibility.sh"
platform: macos
shell_commands:
- "./test_reproducibility.sh"
versions_linux:
name: "./test_version.sh"
platform: ubuntu2004
shell_commands:
- "./test_version.sh"
versions_macos:
name: "./test_version.sh"
platform: macos
shell_commands:
- "./test_version.sh"
thirdparty_version_linux:
name: "./test_thirdparty_version.sh"
platform: ubuntu2204_java17
shell_commands:
- "./test_thirdparty_version.sh"
examples_linux:
name: "./test_examples"
platform: ubuntu2004
bazel: 6.5.0
shell_commands:
- "./test_examples.sh"
cross_build_linux:
name: "./test_cross_build"
platform: ubuntu2004
bazel: 6.5.0
shell_commands:
- "./test_cross_build.sh"
lint_linux:
name: "bazel //tools:lint_check"
platform: ubuntu2004
run_targets:
- "//tools:lint_check"
test_rules_scala_jdk21:
name: "./test_rules_scala with jdk21"
platform: ubuntu2004
shell_commands:
- sudo apt update && sudo apt install -y libxml2-utils
- mv tools/bazel.rc.buildkite tools/bazel.rc
- echo "import %workspace%/tools/bazel.rc" > .bazelrc
- echo "build --java_language_version=21" >> .bazelrc
- echo "build --java_runtime_version=21" >> .bazelrc
- echo "build --tool_java_language_version=21" >> .bazelrc
- echo "build --tool_java_runtime_version=21" >> .bazelrc
- "./test_rules_scala.sh"