22DERIVED_DATA=${1:-/ tmp/ PinLayout}
33
44set -o pipefail &&
5-
65rm -rf $DERIVED_DATA &&
76
87echo " ===============================" &&
98echo " fastlane iOS travis" &&
109echo " ===============================" &&
1110time bundle exec fastlane ios travis &&
1211
13-
1412# echo "===============================" &&
1513# echo "fastlane macOS travis" &&
1614# echo "===============================" &&
@@ -21,9 +19,9 @@ echo "===============================" &&
2119echo " iOS unit test" &&
2220echo " ===============================" &&
2321time xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-iOS -derivedDataPath $DERIVED_DATA -sdk iphonesimulator11.4 \
24- -destination ' platform=iOS Simulator,name=iPhone 7 Plus ,OS=11.4 ' \
25- -destination ' platform=iOS Simulator,name=iPhone 7,OS=11.4 ' \
26- -destination ' platform=iOS Simulator,name=iPhone 6 ,OS=10.2 ' \
22+ -destination ' platform=iOS Simulator,name=iPhone 6 ,OS=9.3 ' \
23+ -destination ' platform=iOS Simulator,name=iPhone 7,OS=10.2 ' \
24+ -destination ' platform=iOS Simulator,name=iPhone 8 ,OS=11.4 ' \
2725 | xcpretty &&
2826
2927
@@ -32,14 +30,14 @@ echo "tvOS unit test" &&
3230echo " ===============================" &&
3331time xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-tvOS -derivedDataPath $DERIVED_DATA -sdk appletvsimulator11.4 \
3432 -destination ' platform=tvOS Simulator,name=Apple TV 4K,OS=11.4' \
35- | xcpretty
33+ | xcpretty &&
3634
3735
3836echo " ===============================" &&
3937echo " macOS unit test" &&
4038echo " ===============================" &&
4139time xcodebuild clean test -workspace PinLayout.xcworkspace -scheme PinLayout-macOS -derivedDataPath $DERIVED_DATA -sdk macosx10.13 \
42- | xcpretty
40+ | xcpretty &&
4341
4442
4543echo " ===============================" &&
@@ -49,9 +47,9 @@ cd TestProjects/cocoapods/ios &&
4947rm -rf $DERIVED_DATA &&
5048pod install &&
5149time xcodebuild clean build -workspace PinLayout-iOS.xcworkspace -scheme PinLayout-iOS -sdk iphonesimulator11.4 -derivedDataPath $DERIVED_DATA \
52- -destination ' platform=iOS Simulator,name=iPhone 7 ,OS=11.4' \
50+ -destination ' platform=iOS Simulator,name=iPhone 8 ,OS=11.4' \
5351 | xcpretty &&
54- cd ../../..
52+ cd ../../.. &&
5553
5654
5755echo " ===============================" &&
@@ -62,7 +60,7 @@ rm -rf $DERIVED_DATA &&
6260pod install &&
6361time xcodebuild clean build -workspace PinLayout-macOS.xcworkspace -scheme PinLayout-macOS -sdk macosx10.13 -derivedDataPath $DERIVED_DATA \
6462 | xcpretty &&
65- cd ../../..
63+ cd ../../.. &&
6664
6765
6866echo " ===============================" &&
@@ -74,7 +72,7 @@ pod install &&
7472time xcodebuild clean build -workspace PinLayout-tvOS.xcworkspace -scheme PinLayout-tvOS -sdk appletvsimulator11.4 -derivedDataPath $DERIVED_DATA \
7573 -destination ' platform=tvOS Simulator,name=Apple TV,OS=11.4' \
7674 | xcpretty &&
77- cd ../../..
75+ cd ../../.. &&
7876
7977
8078echo " ===============================" &&
@@ -88,7 +86,7 @@ carthage update --use-ssh --platform iOS &&
8886time xcodebuild clean build -project PinLayout-Carthage-iOS.xcodeproj -scheme PinLayout-Carthage-iOS -sdk iphonesimulator11.4 -derivedDataPath $DERIVED_DATA \
8987 -destination ' platform=iOS Simulator,name=iPhone 7,OS=11.4' \
9088 | xcpretty &&
91- cd ../../..
89+ cd ../../.. &&
9290
9391
9492# echo "==========================================" &&
0 commit comments