Skip to content

Commit 6026c70

Browse files
authored
ci: add new build universe-domain (#14866)
1 parent acf5b1c commit 6026c70

File tree

3 files changed

+94
-0
lines changed

3 files changed

+94
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
#
3+
# Copyright 2024 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
set -eo pipefail
18+
19+
source "$(dirname "$0")/../../lib/init.sh"
20+
source module ci/lib/io.sh
21+
source module ci/cloudbuild/builds/lib/bazel.sh
22+
source module ci/cloudbuild/builds/lib/cloudcxxrc.sh
23+
source module ci/cloudbuild/builds/lib/universe_domain.sh
24+
25+
export CC=clang
26+
export CXX=clang++
27+
28+
if [[ -n "${UD_SA_KEY_FILE}" ]]; then
29+
ud::bazel_run //google/cloud/universe_domain/demo:kms_demo \
30+
"${UD_PROJECT}" "${UD_REGION}" "${UD_SA_KEY_FILE}"
31+
ud::bazel_test //google/cloud/storage/tests:universe_domain_integration_test
32+
ud::bazel_test //google/cloud/universe_domain/integration_tests:impersonation_tests
33+
else
34+
source module ci/etc/integration-tests-config.sh
35+
bazel run -- //google/cloud/universe_domain/demo:kms_demo \
36+
"${GOOGLE_CLOUD_PROJECT}" "${GOOGLE_CLOUD_CPP_TEST_REGION}"
37+
fi
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
filename: ci/cloudbuild/cloudbuild.yaml
16+
github:
17+
name: google-cloud-cpp
18+
owner: googleapis
19+
push:
20+
branch: ^main$
21+
name: universe-domain-ci
22+
substitutions:
23+
_BUILD_NAME: universe-domain
24+
_DISTRO: fedora-latest-bazel
25+
_TRIGGER_TYPE: ci
26+
includeBuildLogs: INCLUDE_BUILD_LOGS_WITH_STATUS
27+
tags:
28+
- ci
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
filename: ci/cloudbuild/cloudbuild.yaml
16+
github:
17+
name: google-cloud-cpp
18+
owner: googleapis
19+
pullRequest:
20+
branch: ^main$
21+
commentControl: COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY
22+
name: universe-domain-pr
23+
substitutions:
24+
_BUILD_NAME: universe-domain
25+
_DISTRO: fedora-latest-bazel
26+
_TRIGGER_TYPE: pr
27+
includeBuildLogs: INCLUDE_BUILD_LOGS_WITH_STATUS
28+
tags:
29+
- pr

0 commit comments

Comments
 (0)