forked from firebase/FirebaseUI-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·34 lines (28 loc) · 809 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
29
30
31
32
33
34
#!/usr/bin/env bash
set -eo pipefail
EXIT_STATUS=0
(xcodebuild \
-workspace FirebaseUI.xcworkspace \
-scheme FirebaseUI \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,OS=11.2,name=iPhone X' \
build \
test \
ONLY_ACTIVE_ARCH=YES \
CODE_SIGNING_REQUIRED=NO \
| xcpretty) || EXIT_STATUS=$?
# It'd be nice to test building the objc sample as a simple
# integration test, but we don't have a GoogleService-Info.plist file
# on Travis.
# cd samples/objc
# pod install
# (xcodebuild \
# -workspace FirebaseUI-demo-objc.xcworkspace \
# -scheme FirebaseUI-demo-objc \
# -sdk iphonesimulator \
# -destination 'platform=iOS Simulator,name=iPhone 7' \
# build \
# ONLY_ACTIVE_ARCH=YES \
# CODE_SIGNING_REQUIRED=NO \
# | xcpretty) || EXIT_STATUS=$?
exit $EXIT_STATUS