Bazel.build
Build targets Bazel within AXL with ctx.bazel.build(). The result is a
Build object, which has artifacts() (TODO), failures() (TODO), and a events() functions that provide iterators to the artifacts, failures, events respectively.
Running ctx.bazel.build() does not block the Starlark thread. Explicitly
call .wait() on the Build object to wait until the invocation finishes.
You can pass in a single target or target pattern to build.
Examples
Bazel.query
The query system provides a programmatic interface for analyzing build dependencies and target relationships. Queries are constructed using a chain API and are lazily evaluated only when
.eval() is explicitly called.
The entry point is ctx.bazel.query(), which returns a query for creating initial
query expressions. Most operations operate on query objects, which represent
sets of targets that can be filtered, transformed, and combined.
Example
Bazel.test
Build & test Bazel targets within AXL with ctx.bazel.test(). The result is a
Build object, which has artifacts() (TODO), failures() (TODO), and a events() functions that provide iterators to the artifacts, failures, events respectively.
Running ctx.bazel.test() does not block the Starlark thread. Explicitly
call .wait() on the Build object to wait until the invocation finishes.
You can pass in a single target or target pattern to test.
Examples

