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