A ready-to-use Pipeline for Bazel projects.
Run the following command in your project :
fluentci run bazel_pipeline
Or, if you want to use it as a template :
fluentci init -t bazel
This will create a .fluentci
folder in your project.
Now you can run the pipeline with:
fluentci run .
Use as a Dagger Module:
dagger install github.com/fluent-ci-templates/bazel-pipeline@main
Variable | Description |
---|---|
USE_BAZEL_VERSION |
The version of Bazel to use. Defaults to 6.3.2 |
Job | Description |
---|---|
build | Build project |
test | Run tests |
build(
src: Directory | string,
version?: string
): Promise<Directory | string>
test(
src: Directory | string,
version?: string
): Promise<string>
You can also use this pipeline programmatically :
import { test, build } from "jsr:@fluentci/bazel";
await test(".");
await build(".");