Added manual tag and buildtest example

pull/19890/head
Tony Lu 6 years ago
parent a01edec47a
commit f4037db1fb
  1. 4
      examples/objective-c/BUILD
  2. 28
      test/build_test/BUILD

@ -23,6 +23,7 @@ objc_grpc_library(
name = "HelloWorld_grpc_proto",
srcs = ["//examples:protos/helloworld.proto"],
deps = ["//examples:helloworld_proto"],
tags = ["manual"],
)
# This one works with import "external/com_github_grpc_grpc/examples/protos/Helloworld.pbrpc.h"
@ -30,6 +31,7 @@ objc_grpc_library(
name = "HelloWorld_grpc_proto_external",
srcs = ["//external/com_github_grpc_grpc/examples:protos/helloworld.proto"],
deps = ["@com_github_grpc_grpc//examples:helloworld_proto"],
tags = ["manual"],
)
objc_library(
@ -42,6 +44,7 @@ objc_library(
]),
includes = ["helloworld/HelloWorld"],
deps = [":HelloWorld_grpc_proto"],
tags = ["manual"],
)
ios_application(
@ -54,4 +57,5 @@ ios_application(
minimum_os_version = "8.0",
infoplists = ["helloworld/HelloWorld/Info.plist"],
deps = [":HelloWorld-lib"],
tags = ["manual"],
)

@ -0,0 +1,28 @@
# Copyright 2019 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.
licenses(["notice"])
package(default_visibility = ["//visibility:public"])
load("@bazel_skylib//rules:build_test.bzl", "build_test")
# build test //test/build_test:objective_c_examples_test
build_test(
name = "objective_c_examples_test",
targets = [
"//examples/objective-c:HelloWorld",
],
tags = ["manual"],
)
Loading…
Cancel
Save