Skip to content

Commit d0416b1

Browse files
committed
explitily add libxml2 to Windows CI env
1 parent 3a5826b commit d0416b1

File tree

1 file changed

+120
-119
lines changed

1 file changed

+120
-119
lines changed

.bazelci/presubmit.yml

Lines changed: 120 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -1,119 +1,120 @@
1-
---
2-
validate_config: 1
3-
tasks:
4-
ubuntu2004:
5-
name: "bazel test //test/..."
6-
platform: ubuntu2004
7-
shell_commands:
8-
- mv tools/bazel.rc.buildkite tools/bazel.rc
9-
- echo "import %workspace%/tools/bazel.rc" > .bazelrc
10-
build_targets:
11-
- "//test/..."
12-
test_targets:
13-
- "//test/..."
14-
macos:
15-
name: "bazel test //test/..."
16-
platform: macos
17-
shell_commands:
18-
# Disable local disk caching on CI.
19-
- mv tools/bazel.rc.buildkite tools/bazel.rc
20-
- echo "import %workspace%/tools/bazel.rc" > .bazelrc
21-
build_targets:
22-
- "//test/..."
23-
test_targets:
24-
- "//test/..."
25-
test_rules_scala_linux:
26-
name: "./test_rules_scala"
27-
platform: ubuntu2004
28-
shell_commands:
29-
# Install xmllint
30-
- sudo apt update && sudo apt install --reinstall libxml2-utils -y
31-
- "./test_rules_scala.sh"
32-
test_rules_scala_linux_latest:
33-
name: "./test_rules_scala (latest Bazel)"
34-
platform: ubuntu2004
35-
bazel: latest
36-
shell_commands:
37-
# Install xmllint
38-
- sudo apt update && sudo apt install --reinstall libxml2-utils -y
39-
- echo "build --enable_workspace" >> .bazelrc
40-
- "./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)\""
41-
test_rules_scala_macos:
42-
name: "./test_rules_scala"
43-
platform: macos
44-
shell_commands:
45-
- "./test_rules_scala.sh"
46-
test_rules_scala_win:
47-
name: "./test_rules_scala"
48-
platform: windows
49-
environment:
50-
MSYS2_ARG_CONV_EXCL: "*"
51-
batch_commands:
52-
- "set PATH=/usr/bin;%PATH%" #Make sure bash uses msys commands over windows commands. (i.e. find).
53-
- "bash test_rules_scala.sh"
54-
test_coverage_linux_6_5_0:
55-
name: "./test_coverage"
56-
platform: ubuntu2004
57-
bazel: 6.5.0
58-
shell_commands:
59-
- "./test_coverage.sh"
60-
test_coverage_macos_6.5.0:
61-
name: "./test_coverage"
62-
platform: macos
63-
bazel: 6.5.0
64-
shell_commands:
65-
- "./test_coverage.sh"
66-
test_reproducibility_linux:
67-
name: "./test_reproducibility.sh"
68-
platform: ubuntu1804
69-
shell_commands:
70-
- "./test_reproducibility.sh"
71-
test_reproducibility_macos:
72-
name: "./test_reproducibility.sh"
73-
platform: macos
74-
shell_commands:
75-
- "./test_reproducibility.sh"
76-
versions_linux:
77-
name: "./test_version.sh"
78-
platform: ubuntu2004
79-
shell_commands:
80-
- "./test_version.sh"
81-
versions_macos:
82-
name: "./test_version.sh"
83-
platform: macos
84-
shell_commands:
85-
- "./test_version.sh"
86-
thirdparty_version_linux:
87-
name: "./test_thirdparty_version.sh"
88-
platform: ubuntu2204_java17
89-
shell_commands:
90-
- "./test_thirdparty_version.sh"
91-
examples_linux:
92-
name: "./test_examples"
93-
platform: ubuntu2004
94-
bazel: 6.5.0
95-
shell_commands:
96-
- "./test_examples.sh"
97-
cross_build_linux:
98-
name: "./test_cross_build"
99-
platform: ubuntu2004
100-
bazel: 6.5.0
101-
shell_commands:
102-
- "./test_cross_build.sh"
103-
lint_linux:
104-
name: "bazel //tools:lint_check"
105-
platform: ubuntu2004
106-
run_targets:
107-
- "//tools:lint_check"
108-
test_rules_scala_jdk21:
109-
name: "./test_rules_scala with jdk21"
110-
platform: ubuntu2004
111-
shell_commands:
112-
- sudo apt update && sudo apt install -y libxml2-utils
113-
- mv tools/bazel.rc.buildkite tools/bazel.rc
114-
- echo "import %workspace%/tools/bazel.rc" > .bazelrc
115-
- echo "build --java_language_version=21" >> .bazelrc
116-
- echo "build --java_runtime_version=21" >> .bazelrc
117-
- echo "build --tool_java_language_version=21" >> .bazelrc
118-
- echo "build --tool_java_runtime_version=21" >> .bazelrc
119-
- "./test_rules_scala.sh"
1+
---
2+
validate_config: 1
3+
tasks:
4+
ubuntu2004:
5+
name: "bazel test //test/..."
6+
platform: ubuntu2004
7+
shell_commands:
8+
- mv tools/bazel.rc.buildkite tools/bazel.rc
9+
- echo "import %workspace%/tools/bazel.rc" > .bazelrc
10+
build_targets:
11+
- "//test/..."
12+
test_targets:
13+
- "//test/..."
14+
macos:
15+
name: "bazel test //test/..."
16+
platform: macos
17+
shell_commands:
18+
# Disable local disk caching on CI.
19+
- mv tools/bazel.rc.buildkite tools/bazel.rc
20+
- echo "import %workspace%/tools/bazel.rc" > .bazelrc
21+
build_targets:
22+
- "//test/..."
23+
test_targets:
24+
- "//test/..."
25+
test_rules_scala_linux:
26+
name: "./test_rules_scala"
27+
platform: ubuntu2004
28+
shell_commands:
29+
# Install xmllint
30+
- sudo apt update && sudo apt install --reinstall libxml2-utils -y
31+
- "./test_rules_scala.sh"
32+
test_rules_scala_linux_latest:
33+
name: "./test_rules_scala (latest Bazel)"
34+
platform: ubuntu2004
35+
bazel: latest
36+
shell_commands:
37+
# Install xmllint
38+
- sudo apt update && sudo apt install --reinstall libxml2-utils -y
39+
- echo "build --enable_workspace" >> .bazelrc
40+
- "./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)\""
41+
test_rules_scala_macos:
42+
name: "./test_rules_scala"
43+
platform: macos
44+
shell_commands:
45+
- "./test_rules_scala.sh"
46+
test_rules_scala_win:
47+
name: "./test_rules_scala"
48+
platform: windows
49+
environment:
50+
MSYS2_ARG_CONV_EXCL: "*"
51+
batch_commands:
52+
- "set PATH=/usr/bin;%PATH%" #Make sure bash uses msys commands over windows commands. (i.e. find).
53+
- "bash -lc \"pacman --noconfirm --needed -S libxml2\"" #tests require xmllint
54+
- "bash test_rules_scala.sh"
55+
test_coverage_linux_6_5_0:
56+
name: "./test_coverage"
57+
platform: ubuntu2004
58+
bazel: 6.5.0
59+
shell_commands:
60+
- "./test_coverage.sh"
61+
test_coverage_macos_6.5.0:
62+
name: "./test_coverage"
63+
platform: macos
64+
bazel: 6.5.0
65+
shell_commands:
66+
- "./test_coverage.sh"
67+
test_reproducibility_linux:
68+
name: "./test_reproducibility.sh"
69+
platform: ubuntu1804
70+
shell_commands:
71+
- "./test_reproducibility.sh"
72+
test_reproducibility_macos:
73+
name: "./test_reproducibility.sh"
74+
platform: macos
75+
shell_commands:
76+
- "./test_reproducibility.sh"
77+
versions_linux:
78+
name: "./test_version.sh"
79+
platform: ubuntu2004
80+
shell_commands:
81+
- "./test_version.sh"
82+
versions_macos:
83+
name: "./test_version.sh"
84+
platform: macos
85+
shell_commands:
86+
- "./test_version.sh"
87+
thirdparty_version_linux:
88+
name: "./test_thirdparty_version.sh"
89+
platform: ubuntu2204_java17
90+
shell_commands:
91+
- "./test_thirdparty_version.sh"
92+
examples_linux:
93+
name: "./test_examples"
94+
platform: ubuntu2004
95+
bazel: 6.5.0
96+
shell_commands:
97+
- "./test_examples.sh"
98+
cross_build_linux:
99+
name: "./test_cross_build"
100+
platform: ubuntu2004
101+
bazel: 6.5.0
102+
shell_commands:
103+
- "./test_cross_build.sh"
104+
lint_linux:
105+
name: "bazel //tools:lint_check"
106+
platform: ubuntu2004
107+
run_targets:
108+
- "//tools:lint_check"
109+
test_rules_scala_jdk21:
110+
name: "./test_rules_scala with jdk21"
111+
platform: ubuntu2004
112+
shell_commands:
113+
- sudo apt update && sudo apt install -y libxml2-utils
114+
- mv tools/bazel.rc.buildkite tools/bazel.rc
115+
- echo "import %workspace%/tools/bazel.rc" > .bazelrc
116+
- echo "build --java_language_version=21" >> .bazelrc
117+
- echo "build --java_runtime_version=21" >> .bazelrc
118+
- echo "build --tool_java_language_version=21" >> .bazelrc
119+
- echo "build --tool_java_runtime_version=21" >> .bazelrc
120+
- "./test_rules_scala.sh"

0 commit comments

Comments
 (0)