forked from googlesamples/google-services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·28 lines (26 loc) · 706 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
set -o pipefail && xcodebuild \
-workspace ios/${SAMPLE}/${SAMPLE}Example.xcworkspace \
-scheme ${SAMPLE}Example \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 7' \
build \
test \
ONLY_ACTIVE_ARCH=YES \
CODE_SIGNING_REQUIRED=NO\
RESULT=$?
if [ $RESULT == 65 ]; then
echo "xcodebuild exited with 65, retrying"
set -o pipefail && xcodebuild \
-workspace ios/${SAMPLE}/${SAMPLE}Example.xcworkspace \
-scheme ${SAMPLE}Example \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 7' \
build \
test \
ONLY_ACTIVE_ARCH=YES \
CODE_SIGNING_REQUIRED=NO\
| xcpretty
else
exit $RESULT
fi