aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/tests
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2016-06-08 12:53:04 -0700
committerGravatar Jorge Canizales <jcanizales@google.com>2016-06-08 19:21:51 -0700
commit12e03fe30a97c8d4b8d7dcd0c8690b19cc4b35f7 (patch)
treecc1bb86590b541704d67011e5a1b95f23f873b12 /src/objective-c/tests
parentfb4a54541a6e00c43e1671cda0a25e2eda4792df (diff)
Tests Podfile: remove redundancy
Diffstat (limited to 'src/objective-c/tests')
-rw-r--r--src/objective-c/tests/Podfile51
1 files changed, 21 insertions, 30 deletions
diff --git a/src/objective-c/tests/Podfile b/src/objective-c/tests/Podfile
index 4cb9471570..f36c60c997 100644
--- a/src/objective-c/tests/Podfile
+++ b/src/objective-c/tests/Podfile
@@ -3,36 +3,27 @@ platform :ios, '8.0'
install! 'cocoapods', :deterministic_uuids => false
-def shared_pods
- pod 'Protobuf', :path => "../../../third_party/protobuf"
- pod 'BoringSSL', :podspec => ".."
- pod 'gRPC', :path => "../../.."
- pod 'gRPC-Core', :path => "../../.."
- pod 'gRPC-RxLibrary', :path => "../../.."
- pod 'gRPC-ProtoRPC', :path => "../../.."
- pod 'RemoteTest', :path => "RemoteTestClient"
+# Location of gRPC's repo root relative to this file.
+GRPC_LOCAL_SRC = '../../..'
+
+# Install the dependencies in the main target plus all test targets.
+%w(
+ Tests
+ AllTests
+ RxLibraryUnitTests
+ InteropTestsRemote
+ InteropTestsLocalSSL
+ InteropTestsLocalCleartext
+).each do |target_name|
+ target target_name do
+ pod 'Protobuf', :path => "#{GRPC_LOCAL_SRC}/third_party/protobuf"
+ pod 'BoringSSL', :podspec => "#{GRPC_LOCAL_SRC}/src/objective-c"
+ pod 'gRPC', :path => GRPC_LOCAL_SRC
+ pod 'gRPC-Core', :path => GRPC_LOCAL_SRC
+ pod 'gRPC-RxLibrary', :path => GRPC_LOCAL_SRC
+ pod 'gRPC-ProtoRPC', :path => GRPC_LOCAL_SRC
+ pod 'RemoteTest', :path => "RemoteTestClient"
+ end
end
-target 'Tests' do
- shared_pods
-end
-
-target 'AllTests' do
- shared_pods
-end
-
-target 'RxLibraryUnitTests' do
- shared_pods
-end
-
-target 'InteropTestsRemote' do
- shared_pods
-end
-
-target 'InteropTestsLocalSSL' do
- shared_pods
-end
-
-target 'InteropTestsLocalCleartext' do
- shared_pods
end