1
+ set -e
2
+
1
3
DERIVED_DATA=${1:-/ tmp/ PinLayout}
2
4
BASEDIR=$( pwd)
3
5
4
- set -e &&
5
- set -o pipefail &&
6
- rm -rf $DERIVED_DATA &&
7
-
8
- echo " ===============================" &&
9
- echo " PinLayout-iOS" &&
10
- echo " ===============================" &&
11
- time xcodebuild build -project PinLayout.xcodeproj -scheme PinLayout-iOS \
12
- -derivedDataPath $DERIVED_DATA -sdk iphonesimulator15.2 \
13
- -destination ' platform=iOS Simulator,name=iPhone 8,OS=15.2' \
14
- | xcpretty &&
6
+ set -e
7
+ set -o pipefail
8
+ rm -rf $DERIVED_DATA
15
9
16
- echo " ===============================" &&
17
- echo " PinLayout-tvOS" &&
18
- echo " ===============================" &&
19
- time xcodebuild build -project PinLayout.xcodeproj -scheme PinLayout-tvOS \
10
+ # echo "==============================="
11
+ # echo "PinLayout-iOS"
12
+ # echo "==============================="
13
+ # xcodebuild build -project PinLayout.xcodeproj -scheme PinLayout-iOS \
14
+ # -derivedDataPath $DERIVED_DATA -sdk iphonesimulator15.2 \
15
+ # -destination 'platform=iOS Simulator,name=iPhone 8,OS=15.2' \
16
+ # | xcpretty
17
+
18
+ echo " ==============================="
19
+ echo " PinLayout-tvOS"
20
+ echo " ==============================="
21
+ xcodebuild build -project PinLayout.xcodeproj -scheme PinLayout-tvOS \
20
22
-derivedDataPath $DERIVED_DATA -sdk appletvsimulator15.2 \
21
23
-destination ' platform=tvOS Simulator,name=Apple TV 4K (2nd generation),OS=15.2' \
22
- | xcpretty &&
23
-
24
- echo " ===============================" &&
25
- echo " PinLayout-macOS" &&
26
- echo " ===============================" &&
27
- time xcodebuild build -project PinLayout.xcodeproj -scheme PinLayout-macOS \
28
- -derivedDataPath $DERIVED_DATA -sdk macosx11.3 \
29
- | xcpretty &&
30
-
31
- echo " ===============================" &&
32
- echo " PinLayoutSample" &&
33
- echo " ===============================" &&
34
- time xcodebuild build -workspace PinLayout.xcworkspace -scheme PinLayoutSample \
24
+ | xcpretty
25
+
26
+ echo " ==============================="
27
+ echo " PinLayout-macOS"
28
+ echo " ==============================="
29
+ xcodebuild build -project PinLayout.xcodeproj -scheme PinLayout-macOS \
30
+ -derivedDataPath $DERIVED_DATA -sdk macosx12.1 \
31
+ | xcpretty
32
+
33
+ echo " ==============================="
34
+ echo " PinLayoutSample"
35
+ echo " ==============================="
36
+ xcodebuild build -workspace PinLayout.xcworkspace -scheme PinLayoutSample \
35
37
-derivedDataPath $DERIVED_DATA -sdk iphonesimulator15.2 \
36
38
-destination ' platform=iOS Simulator,name=iPhone 8,OS=15.2' \
37
- | xcpretty &&
39
+ | xcpretty
38
40
39
- time xcodebuild build -workspace PinLayout.xcworkspace -scheme PinLayoutSample \
41
+ xcodebuild build -workspace PinLayout.xcworkspace -scheme PinLayoutSample \
40
42
-derivedDataPath $DERIVED_DATA -sdk iphonesimulator15.2 \
41
43
-destination ' platform=iOS Simulator,name=iPhone 7,OS=11.4' \
42
- | xcpretty &&
44
+ | xcpretty
43
45
44
- echo " ===============================" &&
45
- echo " iOS unit test" &&
46
- echo " ===============================" &&
47
- time xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-iOS \
46
+ echo " ==============================="
47
+ echo " iOS unit test"
48
+ echo " ==============================="
49
+ xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-iOS \
48
50
-derivedDataPath $DERIVED_DATA -sdk iphonesimulator15.2 \
49
51
-destination ' platform=iOS Simulator,name=iPhone 7,OS=11.4' \
50
- | xcpretty &&
52
+ | xcpretty
51
53
52
- time xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-iOS \
54
+ xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-iOS \
53
55
-derivedDataPath $DERIVED_DATA -sdk iphonesimulator15.2 \
54
56
-destination ' platform=iOS Simulator,name=iPhone 8,OS=13.5' \
55
- | xcpretty &&
57
+ | xcpretty
56
58
57
- time xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-iOS \
59
+ xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-iOS \
58
60
-derivedDataPath $DERIVED_DATA -sdk iphonesimulator15.2 \
59
61
-destination ' platform=iOS Simulator,name=iPhone 8,OS=15.2' \
60
- | xcpretty &&
62
+ | xcpretty
61
63
62
64
# echo "==============================="
63
65
# echo "tvOS unit test"
64
66
# echo "==============================="
65
- # time xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-tvOS \
67
+ # xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-tvOS \
66
68
# -derivedDataPath $DERIVED_DATA -sdk appletvos15.2 \
67
69
# -destination 'platform=tvOS Simulator,name=Apple TV 4K (2nd generation),OS=15.2' \
68
70
# | xcpretty
@@ -71,66 +73,66 @@ time xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-i
71
73
# echo "==============================="
72
74
# echo "macOS unit test"
73
75
# echo "==============================="
74
- # time xcodebuild clean test -workspace PinLayout.xcworkspace -scheme PinLayout-macOS \
75
- # -derivedDataPath $DERIVED_DATA -sdk macosx11.3 \
76
+ # xcodebuild clean test -workspace PinLayout.xcworkspace -scheme PinLayout-macOS \
77
+ # -derivedDataPath $DERIVED_DATA -sdk macosx12.1 \
76
78
# | xcpretty
77
79
78
- echo " ===============================" &&
79
- echo " Cocoapods: iOS Empty project" &&
80
- echo " ===============================" &&
81
- cd TestProjects/cocoapods/ios &&
82
- rm -rf $DERIVED_DATA &&
83
- pod install &&
84
- time xcodebuild clean build -workspace PinLayout-iOS.xcworkspace -scheme PinLayout-iOS \
80
+ echo " ==============================="
81
+ echo " Cocoapods: iOS Empty project"
82
+ echo " ==============================="
83
+ cd TestProjects/cocoapods/ios
84
+ rm -rf $DERIVED_DATA
85
+ pod install
86
+ xcodebuild clean build -workspace PinLayout-iOS.xcworkspace -scheme PinLayout-iOS \
85
87
-sdk iphonesimulator15.2 -derivedDataPath $DERIVED_DATA \
86
88
-destination ' platform=iOS Simulator,name=iPhone 8,OS=15.2' \
87
- | xcpretty &&
88
- cd ../../.. &&
89
-
90
-
91
- echo " ===============================" &&
92
- echo " Cocoapods: macOS Empty project" &&
93
- echo " ===============================" &&
94
- cd TestProjects/cocoapods/macos &&
95
- rm -rf $DERIVED_DATA &&
96
- pod install &&
97
- time xcodebuild clean build -workspace PinLayout-macOS.xcworkspace -scheme PinLayout-macOS \
98
- -sdk macosx11.3 -derivedDataPath $DERIVED_DATA \
99
- | xcpretty &&
100
- rm -rf $DERIVED_DATA &&
101
- cd ../../.. &&
102
-
103
-
104
- echo " ===============================" &&
105
- echo " Cocoapods: tvOS Empty project" &&
106
- echo " ===============================" &&
107
- cd TestProjects/cocoapods/tvos &&
108
- rm -rf $DERIVED_DATA &&
109
- pod install &&
110
- time xcodebuild clean build -workspace PinLayout-tvOS.xcworkspace -scheme PinLayout-tvOS \
89
+ | xcpretty
90
+ cd ../../..
91
+
92
+
93
+ echo " ==============================="
94
+ echo " Cocoapods: macOS Empty project"
95
+ echo " ==============================="
96
+ cd TestProjects/cocoapods/macos
97
+ rm -rf $DERIVED_DATA
98
+ pod install
99
+ xcodebuild clean build -workspace PinLayout-macOS.xcworkspace -scheme PinLayout-macOS \
100
+ -sdk macosx12.1 -derivedDataPath $DERIVED_DATA \
101
+ | xcpretty
102
+ rm -rf $DERIVED_DATA
103
+ cd ../../..
104
+
105
+
106
+ echo " ==============================="
107
+ echo " Cocoapods: tvOS Empty project"
108
+ echo " ==============================="
109
+ cd TestProjects/cocoapods/tvos
110
+ rm -rf $DERIVED_DATA
111
+ pod install
112
+ xcodebuild clean build -workspace PinLayout-tvOS.xcworkspace -scheme PinLayout-tvOS \
111
113
-sdk appletvsimulator15.2 -derivedDataPath $DERIVED_DATA \
112
114
-destination ' platform=tvOS Simulator,name=Apple TV 4K (2nd generation),OS=15.2' \
113
- | xcpretty &&
114
- rm -rf $DERIVED_DATA &&
115
- cd ../../.. &&
116
-
117
-
118
- echo " ===============================" &&
119
- echo " Carthage: iOS Empty project" &&
120
- echo " ===============================" &&
121
- cd TestProjects/carthage/ios &&
122
- rm -rf $DERIVED_DATA &&
123
- rm Cartfile &&
124
- echo " git \" file:///$BASEDIR \" " > Cartfile &&
125
- carthage update --use-ssh --platform iOS --use-xcframeworks &&
126
- time xcodebuild clean build -project PinLayout-Carthage-iOS.xcodeproj \
115
+ | xcpretty
116
+ rm -rf $DERIVED_DATA
117
+ cd ../../..
118
+
119
+
120
+ echo " ==============================="
121
+ echo " Carthage: iOS Empty project"
122
+ echo " ==============================="
123
+ cd TestProjects/carthage/ios
124
+ rm -rf $DERIVED_DATA
125
+ rm Cartfile
126
+ echo " git \" file:///$BASEDIR \" " > Cartfile
127
+ carthage update --use-ssh --platform iOS --use-xcframeworks
128
+ xcodebuild clean build -project PinLayout-Carthage-iOS.xcodeproj \
127
129
-scheme PinLayout-Carthage-iOS -sdk iphonesimulator15.2 \
128
130
-derivedDataPath $DERIVED_DATA \
129
131
-destination ' platform=iOS Simulator,name=iPhone 8,OS=15.2' \
130
- | xcpretty &&
131
- rm -rf $DERIVED_DATA &&
132
- rm Cartfile.resolved &&
133
- cd ../../.. &&
132
+ | xcpretty
133
+ rm -rf $DERIVED_DATA
134
+ rm Cartfile.resolved
135
+ cd ../../..
134
136
135
137
136
138
echo " =========================================="
@@ -139,13 +141,13 @@ echo "=========================================="
139
141
cd TestProjects/swift-package-manager/ios
140
142
rm -rf $DERIVED_DATA
141
143
rm -rf .build
142
- time xcodebuild clean build -project PinLayout-SPM-iOS.xcodeproj -scheme PinLayout-SPM-iOS -sdk iphonesimulator15.2 -derivedDataPath $DERIVED_DATA \
144
+ xcodebuild clean build -project PinLayout-SPM-iOS.xcodeproj -scheme PinLayout-SPM-iOS -sdk iphonesimulator15.2 -derivedDataPath $DERIVED_DATA \
143
145
-destination ' platform=iOS Simulator,name=iPhone 8,OS=15.2' \
144
146
| xcpretty
145
147
cd ../../..
146
148
147
149
148
- echo " ===============================" &&
149
- echo " Pod lib lint" &&
150
- echo " ===============================" &&
151
- time bundle exec pod lib lint --allow-warnings
150
+ echo " ==============================="
151
+ echo " Pod lib lint"
152
+ echo " ==============================="
153
+ bundle exec pod lib lint --allow-warnings
0 commit comments