forked from plivesey/ConsistencyManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·37 lines (34 loc) · 1.12 KB
/
build.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
35
36
#!/bin/sh
# Builds all targets and runs tests.
DERIVED_DATA=${1:-/tmp/ConsistencyManager}
echo "Derived data location: $DERIVED_DATA";
set -o pipefail &&
rm -rf $DERIVED_DATA &&
time xcodebuild clean test \
-project ConsistencyManager.xcodeproj \
-scheme ConsistencyManager \
-sdk macosx \
-derivedDataPath $DERIVED_DATA \
| tee build.log \
| xcpretty &&
rm -rf $DERIVED_DATA &&
time xcodebuild clean build \
-project ConsistencyManager.xcodeproj \
-scheme ConsistencyManager \
-sdk iphonesimulator10.0 \
-derivedDataPath $DERIVED_DATA \
-destination 'platform=iOS Simulator,name=iPhone 6,OS=8.4' \
-destination 'platform=iOS Simulator,name=iPhone 6,OS=9.3' \
-destination 'platform=iOS Simulator,name=iPhone 7,OS=10.0' \
| tee build.log \
| xcpretty &&
rm -rf $DERIVED_DATA &&
time xcodebuild clean build \
-project ConsistencyManager.xcodeproj \
-scheme ConsistencyManager \
-sdk appletvsimulator10.0 \
-derivedDataPath $DERIVED_DATA \
-destination 'platform=tvOS Simulator,name=Apple TV 1080p,OS=10.0' \
| tee build.log \
| xcpretty &&
cat build.log