diff options
author | Alexandre Rostovtsev <arostovtsev@google.com> | 2023-07-24 21:43:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 21:43:33 -0400 |
commit | f8fab820143a75810e6b7d9f764fc7552b82cbdb (patch) | |
tree | 422a8361e87994b417a520c55b17932b57da6e3e /.bazelci/presubmit.yml | |
parent | 6b6acb39c69ca713420454a2e78d90e327cad08f (diff) | |
download | stardoc-f8fab820143a75810e6b7d9f764fc7552b82cbdb.tar.gz |
Use native starlark_doc_extract rule for doc extraction if it is available
* When available (i.e. in Bazel 7, or in current development Bazel at HEAD), try use the `starlark_doc_extract` native rule for doc extraction instead of the legacy pre-built extraction jar. This behavior can be disabled by passing `use_starlark_doc_extract = False` to the `stardoc` macro.
* Add templates and markdown rendering functionality for repository rule and module extension info protos (which are output by `starlark_doc_extract`).
* Temporary wart: for module extensions, by default we would want the summary blurb to look something like
```
my_ext = use_extension("@my_local_repo//some:file.bzl", "my_ext")
my_ext.tag(foo, bar)
```
but alas, we don't have a good way to get the name of the local repo from Starlark when bzlmod is enabled.
* ... and of course, update tests. Which means in some cases, we have to fork the golden files into current (i.e. `starlark_doc_extract`-enabled) and legacy flavors.
Fixes #69
Fixes #76
Fixes #81
Fixes #123
Diffstat (limited to '.bazelci/presubmit.yml')
-rw-r--r-- | .bazelci/presubmit.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index 90b25c8..ee3e3ef 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -15,6 +15,15 @@ tasks: test_targets: - "//..." + build_and_test_last_green: + name: Build and test - last green + platform: ${{ platform }} + bazel: last_green + build_targets: + - "//..." + test_targets: + - "//..." + bzlmod: name: Bzlmod example platform: ${{ platform }} |