Skip to content

Commit 95d4272

Browse files
ci: Perform xcuitest driver prebuild (#1900)
1 parent d163f8d commit 95d4272

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

azure-pipelines.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
55

66
pool:
7-
vmImage: 'macos-11'
7+
vmImage: 'macos-12'
88

99
variables:
1010
ANDROID_EMU_NAME: test
1111
ANDROID_EMU_ABI: x86
1212
ANDROID_EMU_TARGET: android-28
1313
ANDROID_EMU_TAG: default
14-
XCODE_VERSION: 13.2
15-
IOS_PLATFORM_VERSION: 15.2
16-
IOS_DEVICE_NAME: iPhone X
17-
NODE_VERSION: 16.x
14+
XCODE_VERSION: 14.2
15+
IOS_PLATFORM_VERSION: 16.2
16+
IOS_DEVICE_NAME: iPhone 12
17+
NODE_VERSION: 18.x
1818
JDK_VERSION: 1.8
1919

2020
jobs:
@@ -50,9 +50,14 @@ jobs:
5050
- script: |
5151
sudo xcode-select -s /Applications/Xcode_$(XCODE_VERSION).app/Contents/Developer
5252
xcrun simctl list
53-
displayName: Simulator configuration
54-
- script: $NVM_DIR/versions/node/`node --version`/bin/appium driver install xcuitest
53+
target_sim_id=$(xcrun simctl list devices available | grep "$IOS_DEVICE_NAME (" | cut -d "(" -f2 | cut -d ")" -f1)
54+
open -Fn "/Applications/Xcode_$(XCODE_VERSION).app/Contents/Developer/Applications/Simulator.app"
55+
xcrun simctl bootstatus $target_sim_id -b
56+
displayName: Prepare iOS Simulator
57+
- script: $NVM_DIR/versions/node/$(node --version)/bin/appium driver install xcuitest
5558
displayName: Install XCUITest driver
59+
- script: $NVM_DIR/versions/node/$(node --version)/bin/appium driver run xcuitest build-wda
60+
displayName: Prebuild XCUITest driver
5661
- task: Gradle@2
5762
inputs:
5863
gradleWrapperFile: 'gradlew'

0 commit comments

Comments
 (0)