aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh19
1 files changed, 18 insertions, 1 deletions
diff --git a/test.sh b/test.sh
index 627fbad..367205a 100755
--- a/test.sh
+++ b/test.sh
@@ -18,7 +18,7 @@ test_iOS() {
-workspace Example/Firebase.xcworkspace \
-scheme AllUnitTests_iOS \
-sdk iphonesimulator \
- -destination 'platform=iOS Simulator,OS=10.3.1,name=iPhone 7' \
+ -destination 'platform=iOS Simulator,name=iPhone 7' \
build \
test \
ONLY_ACTIVE_ARCH=YES \
@@ -39,6 +39,19 @@ test_macOS() {
| xcpretty
}
+test_tvOS() {
+ xcodebuild \
+ -workspace Example/Firebase.xcworkspace \
+ -scheme AllUnitTests_tvOS \
+ -sdk appletvsimulator \
+ -destination 'platform=tvOS Simulator,name=Apple TV' \
+ build \
+ test \
+ ONLY_ACTIVE_ARCH=YES \
+ CODE_SIGNING_REQUIRED=NO \
+ | xcpretty
+}
+
test_iOS; RESULT=$?
if [ $RESULT != 0 ]; then exit $RESULT; fi
@@ -54,5 +67,9 @@ fi
if [ $RESULT != 0 ]; then exit $RESULT; fi
+test_tvOS; RESULT=$?
+
+if [ $RESULT != 0 ]; then exit $RESULT; fi
+
# Also test Firestore
Firestore/test.sh