Skip to content

Commit 50e12c7

Browse files
committed
generate libraries
1 parent f7fe0a6 commit 50e12c7

File tree

1 file changed

+55
-1
lines changed

1 file changed

+55
-1
lines changed

.cloudbuild/library_generation/cloudbuild-library-generation-integration-test.yaml

+55-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ steps:
2727
waitFor: ["-"]
2828
env:
2929
- "DOCKER_BUILDKIT=1"
30+
3031
- name: ubuntu:24.04
3132
entrypoint: bash
3233
args:
@@ -36,9 +37,10 @@ steps:
3637
cd /workspace
3738
git clone https://github.com/googleapis/googleapis
3839
cd googleapis
39-
git switch 113a378d5aad5018876ec0a8cbfd4d6a4f746809
40+
git checkout 113a378d5aad5018876ec0a8cbfd4d6a4f746809
4041
id: download-api-definitions
4142
waitFor: ["-"]
43+
4244
- name: ubuntu:24.04
4345
entrypoint: bash
4446
args:
@@ -61,5 +63,57 @@ steps:
6163
id: prepare-golden
6264
waitFor: ["-"]
6365

66+
- name: ubuntu:24.04
67+
entrypoint: bash
68+
args:
69+
- "-c"
70+
- |
71+
# Install docker
72+
apt-get update
73+
apt-get install -y ca-certificates curl gnupg lsb-release
74+
mkdir -p /etc/apt/keyrings
75+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \
76+
gpg --dearmor -o /etc/apt/keyrings/docker.gpg
77+
echo \
78+
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
79+
$(lsb_release -cs) stable" | \
80+
tee /etc/apt/sources.list.d/docker.list > /dev/null
81+
apt-get update
82+
apt-get -y install \
83+
docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
84+
docker run \
85+
--rm \
86+
--quiet \
87+
-u "$(id -u):$(id -g)" \
88+
-v "/workspace/google-cloud-java:/workspace" \
89+
-v "/workspace/hermetic_build/library_generation/tests/resources/integration/google-cloud-java:/workspace/config" \
90+
-v "/workspace/googleapis:/workspace/apis" \
91+
"${_TEST_IMAGE}" \
92+
--generation-config-path="/workspace/config/generation_config.yaml" \
93+
--api-definitions-path="/workspace/apis"
94+
id: generate-libraries
95+
waitFor: [
96+
"build-image",
97+
"download-api-definitions",
98+
"prepare-golden"
99+
]
64100
options:
65101
logging: CLOUD_LOGGING_ONLY
102+
103+
104+
105+
106+
107+
108+
109+
110+
111+
112+
113+
114+
115+
116+
117+
118+
119+

0 commit comments

Comments
 (0)