forked from isair/JSONHelper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·23 lines (15 loc) · 736 Bytes
/
test.sh
File metadata and controls
executable file
·23 lines (15 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh
cd "$(dirname "$0")/.."
xcodebuild test -project JSONHelper.xcodeproj -scheme JSONHelper -destination 'platform=iOS Simulator,name=iPhone SE' -derivedDataPath='./build' | bundle exec xcpretty
IOS_STATUS=${PIPESTATUS[0]}
xcodebuild test -project JSONHelper.xcodeproj -scheme JSONHelper -destination 'platform=OS X,arch=x86_64' | bundle exec xcpretty
MAC_STATUS=${PIPESTATUS[0]}
xcodebuild test -project JSONHelper.xcodeproj -scheme JSONHelper -destination 'platform=tvOS Simulator,name=Apple TV 1080p' | bundle exec xcpretty
TVOS_STATUS=${PIPESTATUS[0]}
if [[ $IOS_STATUS == 0 && $MAC_STATUS == 0 && $TVOS_STATUS == 0 ]]; then
echo "All tests have passed."
exit 0
else
echo "Some tests have failed."
exit 1
fi