-
Notifications
You must be signed in to change notification settings - Fork 34
/
build.sh
executable file
·29 lines (28 loc) · 934 Bytes
/
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
#!/bin/sh
# Builds all targets and runs tests.
set -o pipefail &&
time xcodebuild clean test \
-scheme ConsistencyManager \
-sdk macosx \
-enableCodeCoverage YES \
| tee build.log \
| xcpretty &&
time xcodebuild clean test \
-scheme ConsistencyManager \
-sdk iphonesimulator \
-disable-concurrent-destination-testing \
-enableCodeCoverage YES \
-destination 'platform=iOS Simulator,name=iPhone 6,OS=10.3.1' \
-destination 'platform=iOS Simulator,name=iPhone 7,OS=11.4' \
-destination 'platform=iOS Simulator,name=iPhone X,OS=12.4' \
-destination 'platform=iOS Simulator,name=iPhone 11 Pro,OS=13.3' \
| tee build.log \
| xcpretty &&
time xcodebuild clean test \
-scheme ConsistencyManager \
-sdk appletvsimulator \
-enableCodeCoverage YES \
-destination 'platform=tvOS Simulator,name=Apple TV,OS=13.3' \
| tee build.log \
| xcpretty &&
cat build.log