-
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: only run bazel 6 unit tests with bzlmod
- Loading branch information
Showing
7 changed files
with
115 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
""" | ||
Wrapper around stardoc_with_diff_test that only runs the test if Bazel 7 or greater is being used. | ||
""" | ||
|
||
load("@aspect_bazel_lib//lib:docs.bzl", _stardoc_with_diff_test = "stardoc_with_diff_test", _update_docs = "update_docs") | ||
load("@aspect_bazel_lib//lib:utils.bzl", "is_bazel_7_or_greater") | ||
|
||
def stardoc_with_diff_test(name, **kwargs): | ||
""" | ||
Wrapper around stardoc_with_diff_test that only runs the test if Bazel 7 or greater is being used. | ||
""" | ||
if is_bazel_7_or_greater(): | ||
_stardoc_with_diff_test(name, **kwargs) | ||
else: | ||
# buildifier: disable=print | ||
print("WARNING: Skipping stardoc_with_diff_test for %s because it requires Bazel 7 or greater" % name) | ||
|
||
update_docs = _update_docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters