mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.5 KiB
47 lines
1.5 KiB
#!/usr/bin/env bash |
|
# Copyright 2021 The gRPC authors. |
|
# |
|
# Licensed under the Apache License, Version 2.0 (the "License"); |
|
# you may not use this file except in compliance with the License. |
|
# You may obtain a copy of the License at |
|
# |
|
# http://www.apache.org/licenses/LICENSE-2.0 |
|
# |
|
# Unless required by applicable law or agreed to in writing, software |
|
# distributed under the License is distributed on an "AS IS" BASIS, |
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
# See the License for the specific language governing permissions and |
|
# limitations under the License. |
|
|
|
set -ex |
|
|
|
if [ "$#" != "1" ] ; then |
|
echo "Must supply bazel version to be tested." >/dev/stderr |
|
exit 1 |
|
fi |
|
|
|
VERSION="$1" |
|
|
|
cd "$(dirname "$0")"/../../.. |
|
|
|
EXCLUDED_TARGETS=( |
|
# iOS platform fails the analysis phase since there is no toolchain available |
|
# for it. |
|
"-//src/objective-c/..." |
|
"-//third_party/objective_c/..." |
|
|
|
# This could be a legitmate failure due to bitrot. |
|
"-//src/proto/grpc/testing:test_gen_proto" |
|
|
|
# This appears to be a legitimately broken BUILD file. There's a reference to |
|
# a non-existent "link_dynamic_library.sh". |
|
"-//third_party/toolchains/bazel_0.26.0_rbe_windows:all" |
|
|
|
# TODO(jtattermusch): add back once fixed |
|
"-//examples/android/binder/..." |
|
) |
|
|
|
export OVERRIDE_BAZEL_VERSION="$VERSION" |
|
# when running under bazel docker image, the workspace is read only. |
|
export OVERRIDE_BAZEL_WRAPPER_DOWNLOAD_DIR=/tmp |
|
bazel build -- //... "${EXCLUDED_TARGETS[@]}"
|
|
|