Skip to content

Commit d15453b

Browse files
committed
test: use examples/bzlmod lock file to test
1 parent 79ca4a4 commit d15453b

File tree

4 files changed

+5309
-0
lines changed

4 files changed

+5309
-0
lines changed

.bazelci/presubmit.yml

+8
Original file line numberDiff line numberDiff line change
@@ -229,24 +229,32 @@ tasks:
229229
name: "examples/bzlmod: Ubuntu"
230230
working_directory: examples/bzlmod
231231
platform: ubuntu2004
232+
test_flags:
233+
- "--config=ci"
232234
integration_test_bzlmod_debian:
233235
<<: *reusable_build_test_all
234236
<<: *coverage_targets_example_bzlmod
235237
name: "examples/bzlmod: Debian"
236238
working_directory: examples/bzlmod
237239
platform: debian11
240+
test_flags:
241+
- "--config=ci"
238242
integration_test_bzlmod_macos:
239243
<<: *reusable_build_test_all
240244
<<: *coverage_targets_example_bzlmod
241245
name: "examples/bzlmod: macOS"
242246
working_directory: examples/bzlmod
243247
platform: macos
248+
test_flags:
249+
- "--config=ci"
244250
integration_test_bzlmod_windows:
245251
<<: *reusable_build_test_all
246252
# coverage is not supported on Windows
247253
name: "examples/bzlmod: Windows"
248254
working_directory: examples/bzlmod
249255
platform: windows
256+
test_flags:
257+
- "--config=ci"
250258

251259
integration_test_bzlmod_generate_build_file_generation_ubuntu_min:
252260
<<: *minimum_supported_version

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,4 @@ user.bazelrc
5252
# MODULE.bazel.lock is ignored for now as per recommendation from upstream.
5353
# See https://github.com/bazelbuild/bazel/issues/20369
5454
MODULE.bazel.lock
55+
!/examples/bzlmod/MODULE.bazel.lock

examples/bzlmod/.bazelrc

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ test --test_output=errors --enable_runfiles
66

77
# Windows requires these for multi-python support:
88
build --enable_runfiles
9+
10+
common:ci --lockfile_mode=error

0 commit comments

Comments
 (0)