Create & Init Project...

This commit is contained in:
2019-04-22 18:49:16 +08:00
commit fc4fa37393
25440 changed files with 4054998 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
presubmits:
platform/go-common:
- name: __bazel_build_job_name__
always_run: true
namespace: default
untrusted_labels:
- library
- new-project
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
- make
- bazel-build
- WHAT=<<bazel_dir_param>>

View File

@@ -0,0 +1,18 @@
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>>

View File

@@ -0,0 +1,18 @@
presubmits:
platform/go-common:
- name: __go_linter_job_name__
always_run: true
namespace: default
optional: true
spec:
containers:
- image: go_lint
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/verify-lint.sh
- ./<<bazel_dir_param>>/...