Skip to content

Commit 4f9c9d8

Browse files
committed
Fixed test script.
1 parent 6e0af13 commit 4f9c9d8

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

scripts/test-build-all

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,19 @@ else
2828
textDim=""
2929
fi
3030

31-
32-
iOSDevice="iPhone 7 Plus"
33-
iOSVersion="11.0"
34-
31+
iOSDevice="iPhone 6 Plus"
32+
iOSVersion="9.0"
33+
34+
xcodeVersion=`xcodebuild -version | head -n1 | cut -d' ' -f2 | cut -d'.' -f1`
35+
if [[ $xcodeVersion = '9' ]]
36+
then
37+
iOSDevice="iPhone 8 Plus"
38+
iOSVersion="11.0"
39+
elif [[ $xcodeVersion = '8' ]]
40+
then
41+
iOSDevice="iPhone 7 Plus"
42+
iOSVersion="10.0"
43+
fi
3544

3645
function fileExtension() {
3746
echo ${1##*.}
@@ -84,15 +93,13 @@ buildDirectoryProjectScheme \
8493
TestBed-Swift.xcodeproj \
8594
TestBed-Swift
8695

87-
cd Examples/WebViewExample
88-
# printf "${textBlue}>>> Updating '%s'...${textNormal}\n" "$(basename `pwd`)"
89-
# pod install
90-
# pod update
91-
cd ../..
92-
buildDirectoryProjectScheme \
93-
Examples/WebViewExample \
94-
WebViewExample.xcworkspace \
95-
WebViewExample
96+
if [[ $xcodeVersion = '9' ]]
97+
then
98+
buildDirectoryProjectScheme \
99+
Examples/WebViewExample \
100+
WebViewExample.xcworkspace \
101+
WebViewExample
102+
fi
96103

97104
buildDirectoryProjectScheme \
98105
Branch-TestBed-Xcode-7 \

0 commit comments

Comments
 (0)