Skip to content

Commit 7b26393

Browse files
authored
ci(gcb): add gcs-grpc build (#6267)
1 parent ad10249 commit 7b26393

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

ci/cloudbuild/builds/gcs-grpc.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
#
3+
# Copyright 2021 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+
# http://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 -eu
18+
19+
source "$(dirname "$0")/../../lib/init.sh"
20+
source module ci/cloudbuild/builds/lib/bazel.sh
21+
source module ci/cloudbuild/builds/lib/integration.sh
22+
23+
export CC=clang
24+
export CXX=clang++
25+
26+
mapfile -t args < <(bazel::common_args)
27+
bazel test "${args[@]}" --test_tag_filters=-integration-test google/cloud/storage/...
28+
29+
mapfile -t integration_args < <(integration::args)
30+
# "media" says to use the hybrid gRPC/REST client. For more details see
31+
# https://github.com/googleapis/google-cloud-cpp/issues/6268
32+
GOOGLE_CLOUD_CPP_STORAGE_GRPC_CONFIG=media # Uses the gRPC data plane
33+
io::log_h2 "Running Storage integration tests (with emulator)"
34+
google/cloud/storage/ci/run_integration_tests_emulator_bazel.sh \
35+
bazel test "${args[@]}" "${integration_args[@]}"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
filename: ci/cloudbuild/cloudbuild.yaml
2+
github:
3+
name: google-cloud-cpp
4+
owner: googleapis
5+
push:
6+
branch: ^(master|main|v\d+\..*)$
7+
name: gcs-grpc-ci
8+
substitutions:
9+
_BUILD_NAME: gcs-grpc
10+
_DISTRO: fedora
11+
tags:
12+
- ci
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
filename: ci/cloudbuild/cloudbuild.yaml
2+
github:
3+
name: google-cloud-cpp
4+
owner: googleapis
5+
pullRequest:
6+
branch: ^(master|main|v\d+\..*)$
7+
commentControl: COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY
8+
name: gcs-grpc-pr
9+
substitutions:
10+
_BUILD_NAME: gcs-grpc
11+
_DISTRO: fedora
12+
tags:
13+
- pr

0 commit comments

Comments
 (0)