1+ set -e
2+
13DERIVED_DATA=${1:-/ tmp/ PinLayout}
24BASEDIR=$( pwd)
35
4- set -e &&
5- set -o pipefail &&
6- rm -rf $DERIVED_DATA &&
6+ set -e
7+ set -o pipefail
8+ rm -rf $DERIVED_DATA
79
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 \
1214 -derivedDataPath $DERIVED_DATA -sdk iphonesimulator15.2 \
1315 -destination ' platform=iOS Simulator,name=iPhone 8,OS=15.2' \
14- | xcpretty &&
16+ | xcpretty
1517
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 \
2022 -derivedDataPath $DERIVED_DATA -sdk appletvsimulator15.2 \
2123 -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 \
3537 -derivedDataPath $DERIVED_DATA -sdk iphonesimulator15.2 \
3638 -destination ' platform=iOS Simulator,name=iPhone 8,OS=15.2' \
37- | xcpretty &&
39+ | xcpretty
3840
39- time xcodebuild build -workspace PinLayout.xcworkspace -scheme PinLayoutSample \
41+ xcodebuild build -workspace PinLayout.xcworkspace -scheme PinLayoutSample \
4042 -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
4345
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 \
4850 -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
5153
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 \
5855 -derivedDataPath $DERIVED_DATA -sdk iphonesimulator15.2 \
5956 -destination ' platform=iOS Simulator,name=iPhone 8,OS=15.2' \
60- | xcpretty &&
57+ | xcpretty
6158
6259# echo "==============================="
6360# echo "tvOS unit test"
6461# echo "==============================="
65- # time xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-tvOS \
62+ # xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-tvOS \
6663# -derivedDataPath $DERIVED_DATA -sdk appletvos15.2 \
6764# -destination 'platform=tvOS Simulator,name=Apple TV 4K (2nd generation),OS=15.2' \
6865# | xcpretty
@@ -71,66 +68,66 @@ time xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-i
7168# echo "==============================="
7269# echo "macOS unit test"
7370# 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 \
7673# | xcpretty
7774
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 \
8582 -sdk iphonesimulator15.2 -derivedDataPath $DERIVED_DATA \
8683 -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 \
111108 -sdk appletvsimulator15.2 -derivedDataPath $DERIVED_DATA \
112109 -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 ../../..
134131
135132
136133echo " =========================================="
@@ -139,13 +136,13 @@ echo "=========================================="
139136cd TestProjects/swift-package-manager/ios
140137rm -rf $DERIVED_DATA
141138rm -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 \
143140 -destination ' platform=iOS Simulator,name=iPhone 8,OS=15.2' \
144141 | xcpretty
145142cd ../../..
146143
147144
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