forked from google/copybara
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
28 lines (28 loc) · 1.04 KB
/
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
26
27
28
# 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"]
# Bazel 7.2 symlinks the workspace in a way that causes nested gits in some of our tests
- name: 'ubuntu'
args: ["rm", "-rf", "/workspace/.git"]
- name: 'ci'
args: ["test", "--enable_bzlmod=false", "--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: ad5916a7e27eeddbddb003d7671d5a8202c7346e3c682c059b27467b47c0f6d4
timeout: 30m