go_study/go-for-study/build/template/task/bazel_test.yaml

19 lines
479 B
YAML

presubmits:
platform/go-common:
- name: __bazel_test_job_name__
always_run: true
namespace: default
optional: true
spec:
containers:
- image: bazel_build
imagePullPolicy: IfNotPresent
args:
- --id=$(BUILD_ID)
- --job=$(JOB_NAME)
- --root=/root/go/src
- --repo=git.bilibili.co/$(REPO_OWNER)/$(REPO_NAME)=$(PULL_REFS)
- --command
- ./build/unit_test.sh
- <<bazel_dir_param>>