@@ -91,7 +91,63 @@ buildifier:
9191 - //tests:version_3_13_test
9292 - //tests:version_3_14_test
9393 - //tests:version_default_test
94+
95+ # Keep in sync with .bcr/gazelle/presubmit.yml
96+ .gazelle_common_bcr : &gazelle_common_bcr
97+ bazel : ${{ bazel }}
98+ working_directory : gazelle/examples/bzlmod_build_file_generation
99+ shell_commands :
100+ - " echo 'common --override_module=rules_python=' >> .bazelrc"
101+ - " bazel run //:gazelle_python_manifest.update"
102+ - " bazel run //:gazelle -- update"
103+ batch_commands :
104+ - " echo common --override_module=rules_python= >> .bazelrc "
105+ - " bazel run //:gazelle_python_manifest.update "
106+ - " bazel run //:gazelle -- update"
107+ build_targets :
108+ - " //..."
109+ - " :modules_map"
110+ test_targets :
111+ - " //..."
112+
113+
114+ matrix :
115+ platform :
116+ - ubuntu2204
117+ - debian11
118+ - macos_arm64
119+ - windows
120+ bazel : [7.*, 8.*]
121+
94122tasks :
123+ # Keep in sync with .bcr/presubmit.yml
124+ bcr_test :
125+ name : " BCR: Bazel {bazel}"
126+ platform : ${{ platform }}
127+ working_directory : examples/bzlmod
128+ bazel : ${{ bazel }}
129+ build_flags :
130+ - " --keep_going"
131+ test_flags :
132+ - " --keep_going"
133+ build_targets :
134+ - " //..."
135+ test_targets :
136+ - " //..."
137+
138+ gazelle_bcr_ubuntu :
139+ << : *gazelle_common_bcr
140+ name : " Gazelle: BCR, Bazel {bazel}"
141+ platform : ubuntu2204
142+ gazelle_bcr_debian11 :
143+ << : *gazelle_common_bcr
144+ name : " Gazelle: BCR, Bazel {bazel}"
145+ platform : debian11
146+ gazelle_bcr_macos_arm64 :
147+ << : *gazelle_common_bcr
148+ name : " Gazelle: BCR, Bazel {bazel}"
149+ platform : macos_arm64
150+
95151 gazelle_extension_min :
96152 << : *common_workspace_flags_min_bazel
97153 << : *minimum_supported_version
@@ -262,113 +318,15 @@ tasks:
262318 working_directory : examples/build_file_generation
263319 platform : windows
264320
265- integration_test_bzlmod_ubuntu_min :
266- << : *minimum_supported_version
267- << : *reusable_build_test_all
268- coverage_targets : ["//:test"]
269- name : " examples/bzlmod: Ubuntu, minimum Bazel"
270- working_directory : examples/bzlmod
271- platform : ubuntu2204
272- bazel : 7.x
273- integration_test_bzlmod_ubuntu :
274- << : *reusable_build_test_all
275- << : *coverage_targets_example_bzlmod
276- name : " examples/bzlmod: Ubuntu"
277- working_directory : examples/bzlmod
278- platform : ubuntu2204
279- bazel : 7.x
280- integration_test_bzlmod_ubuntu_upcoming :
281- << : *reusable_build_test_all
282- << : *coverage_targets_example_bzlmod
283- name : " examples/bzlmod: Ubuntu, upcoming Bazel"
284- working_directory : examples/bzlmod
285- platform : ubuntu2204
286- bazel : last_rc
287- integration_test_bzlmod_debian :
288- << : *reusable_build_test_all
289- << : *coverage_targets_example_bzlmod
290- name : " examples/bzlmod: Debian"
291- working_directory : examples/bzlmod
292- platform : debian11
293- bazel : 7.x
294321 integration_test_bzlmod_ubuntu_vendor :
295322 << : *reusable_build_test_all
296323 name : " examples/bzlmod: bazel vendor"
297324 working_directory : examples/bzlmod
298325 platform : ubuntu2204
299326 shell_commands :
300- - " bazel vendor --vendor_dir=./vendor //..."
301- - " bazel build --vendor_dir=./vendor //..."
302- - " rm -rf ./vendor"
303- integration_test_bzlmod_macos :
304- << : *reusable_build_test_all
305- << : *coverage_targets_example_bzlmod
306- name : " examples/bzlmod: macOS"
307- working_directory : examples/bzlmod
308- platform : macos_arm64
309- bazel : 7.x
310- integration_test_bzlmod_macos_upcoming :
311- << : *reusable_build_test_all
312- << : *coverage_targets_example_bzlmod
313- name : " examples/bzlmod: macOS, upcoming Bazel"
314- working_directory : examples/bzlmod
315- platform : macos_arm64
316- bazel : last_rc
317- integration_test_bzlmod_windows :
318- << : *reusable_build_test_all
319- # coverage is not supported on Windows
320- name : " examples/bzlmod: Windows"
321- working_directory : examples/bzlmod
322- platform : windows
323- bazel : 7.x
324- integration_test_bzlmod_windows_upcoming :
325- << : *reusable_build_test_all
326- # coverage is not supported on Windows
327- name : " examples/bzlmod: Windows, upcoming Bazel"
328- working_directory : examples/bzlmod
329- platform : windows
330- bazel : last_rc
331-
332- integration_test_bzlmod_generate_build_file_generation_ubuntu_min :
333- << : *minimum_supported_version
334- << : *reusable_build_test_all
335- << : *coverage_targets_example_bzlmod_build_file_generation
336- name : " gazelle/examples/bzlmod_build_file_generation: Ubuntu, minimum Bazel"
337- working_directory : gazelle/examples/bzlmod_build_file_generation
338- platform : ubuntu2204
339- bazel : 7.x
340- integration_test_bzlmod_generation_build_files_ubuntu :
341- << : *reusable_build_test_all
342- << : *coverage_targets_example_bzlmod_build_file_generation
343- name : " gazelle/examples/bzlmod_build_file_generation: Ubuntu"
344- working_directory : gazelle/examples/bzlmod_build_file_generation
345- platform : ubuntu2204
346- integration_test_bzlmod_generation_build_files_ubuntu_run :
347- << : *reusable_build_test_all
348- name : " gazelle/examples/bzlmod_build_file_generation: Ubuntu, Gazelle and pip"
349- working_directory : gazelle/examples/bzlmod_build_file_generation
350- platform : ubuntu2204
351- shell_commands :
352- - " bazel run //:gazelle_python_manifest.update"
353- - " bazel run //:gazelle -- update"
354- integration_test_bzlmod_build_file_generation_debian :
355- << : *reusable_build_test_all
356- << : *coverage_targets_example_bzlmod_build_file_generation
357- name : " gazelle/examples/bzlmod_build_file_generation: Debian"
358- working_directory : gazelle/examples/bzlmod_build_file_generation
359- platform : debian11
360- integration_test_bzlmod_build_file_generation_macos :
361- << : *reusable_build_test_all
362- << : *coverage_targets_example_bzlmod_build_file_generation
363- name : " gazelle/examples/bzlmod_build_file_generation: MacOS"
364- working_directory : gazelle/examples/bzlmod_build_file_generation
365- platform : macos_arm64
366- integration_test_bzlmod_build_file_generation_windows :
367- << : *reusable_build_test_all
368- # coverage is not supported on Windows
369- name : " gazelle/examples/bzlmod_build_file_generation: Windows"
370- working_directory : gazelle/examples/bzlmod_build_file_generation
371- platform : windows
327+ - " bazel vendor --vendor_dir=./vendor //..."
328+ - " bazel build --vendor_dir=./vendor //..."
329+ - " rm -rf ./vendor"
372330
373331 integration_test_multi_python_versions_ubuntu_workspace :
374332 << : *reusable_build_test_all
0 commit comments