forked from SwifterSwift/SwifterSwift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
39 lines (37 loc) · 1.29 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
37
38
39
#!/bin/sh
# Builds all targets and runs tests.
DERIVED_DATA=${1:-/tmp/SwifterSwift}
echo "Derived data location: $DERIVED_DATA";
set -o pipefail &&
rm -rf $DERIVED_DATA &&
time xcodebuild clean test \
-project SwifterSwift.xcodeproj \
-scheme 'SwifterSwift macOS' \
-sdk macosx10.12 \
-derivedDataPath $DERIVED_DATA \
OTHER_SWIFT_FLAGS='-Xfrontend -debug-time-function-bodies' \
| tee build.log \
| xcpretty &&
cat build.log | sh debug-time-function-bodies.sh &&
rm -rf $DERIVED_DATA &&
time xcodebuild clean test \
-project SwifterSwift.xcodeproj \
-scheme 'SwifterSwift tvOS' \
-sdk appletvsimulator10.1 \
-derivedDataPath $DERIVED_DATA \
-destination 'platform=tvOS Simulator,name=Apple TV 1080p' \
OTHER_SWIFT_FLAGS='-Xfrontend -debug-time-function-bodies' \
| tee build.log \
| xcpretty &&
cat build.log | sh debug-time-function-bodies.sh &&
rm -rf $DERIVED_DATA &&
time xcodebuild clean test \
-project SwifterSwift.xcodeproj \
-scheme 'SwifterSwift iOS' \
-sdk iphonesimulator10.2 \
-derivedDataPath $DERIVED_DATA \
-destination 'platform=iOS Simulator,name=iPhone 7,OS=10.2' \
OTHER_SWIFT_FLAGS='-Xfrontend -debug-time-function-bodies' \
| tee build.log \
| xcpretty &&
cat build.log | sh debug-time-function-bodies.sh