forked from google/copybara
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudbuild.yaml
25 lines (25 loc) · 898 Bytes
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# GCB configuration file
# To learn more about GCB, go to https://cloud.google.com/container-builder/docs/
steps:
- name: 'gcr.io/cloud-builders/docker:latest'
args:
- "build"
- "-f"
- "ci.Dockerfile"
- "--build-arg"
- "BAZEL_VERSION=@sha256:${_BAZEL_SHA256}"
- "-t"
- "ci"
- "."
# The /builder folder is mounted across steps but owned by root:root
# HOME=/builder/home
# https://github.com/GoogleCloudPlatform/cloud-builders/issues/641
- name: 'ubuntu'
args: ["chmod", "-R", "777", "/builder"]
- name: 'ci'
args: ["test", "--java_language_version=11", "--tool_java_language_version=11", "--java_runtime_version=remotejdk_11", "--test_output=errors", "--subcommands", "--sandbox_tmpfs_path=/tmp", "--jobs=1000", "--", "..."]
options:
machine_type: N1_HIGHCPU_32
substitutions:
_BAZEL_SHA256: 0a9fb6c7bb0db386888a26940e87829ffad4d2a6bc12bcc32523670ef9ea6505
timeout: 30m