blob: 340044f3222ec0fd37fb7d85f75fd4216ef50b0e [file] [log] [blame]
Jorge Canizalesd0b32e92015-07-30 23:08:43 -07001#!/bin/bash
Jan Tattermusch7897ae92017-06-07 22:57:36 +02002# Copyright 2015 gRPC authors.
Jorge Canizalesd0b32e92015-07-30 23:08:43 -07003#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02004# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
Jorge Canizalesd0b32e92015-07-30 23:08:43 -07007#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02008# http://www.apache.org/licenses/LICENSE-2.0
Jorge Canizalesd0b32e92015-07-30 23:08:43 -07009#
Jan Tattermusch7897ae92017-06-07 22:57:36 +020010# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
Jorge Canizalesd0b32e92015-07-30 23:08:43 -070015
Jorge Canizalese8d95352015-08-03 15:41:11 -070016# Don't run this script standalone. Instead, run from the repository root:
17# ./tools/run_tests/run_tests.py -l objc
18
Jorge Canizalesd0b32e92015-07-30 23:08:43 -070019set -e
20
Jan Tattermuschf2ce4302016-06-14 16:11:48 -070021# CocoaPods requires the terminal to be using UTF-8 encoding.
22export LANG=en_US.UTF-8
23
Jorge Canizalesd0b32e92015-07-30 23:08:43 -070024cd $(dirname $0)
25
Jorge Canizales02039a22015-08-02 16:26:59 -070026hash pod 2>/dev/null || { echo >&2 "Cocoapods needs to be installed."; exit 1; }
Jorge Canizalese8d95352015-08-03 15:41:11 -070027hash xcodebuild 2>/dev/null || {
28 echo >&2 "XCode command-line tools need to be installed."
29 exit 1
30}
Jorge Canizales02039a22015-08-02 16:26:59 -070031
Jorge Canizales545bad32016-07-15 23:16:32 -070032# clean the directory
33rm -rf Pods
34rm -rf Tests.xcworkspace
35rm -f Podfile.lock
36rm -f RemoteTestClient/*.{h,m}
Jorge Canizales37a44d82015-08-03 15:40:54 -070037
Muxi Yanea9d8b62017-03-29 10:20:19 -070038echo "TIME: $(date)"
Jorge Canizalese95f2412015-08-02 16:27:53 -070039pod install
Muxi Yan6a8763e2017-06-06 11:13:09 -070040