Skip to content

ci: Perform xcuitest driver prebuild #1900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
# https://docs.microsoft.com/azure/devops/pipelines/languages/java

pool:
vmImage: 'macos-11'
vmImage: 'macos-12'

variables:
ANDROID_EMU_NAME: test
ANDROID_EMU_ABI: x86
ANDROID_EMU_TARGET: android-28
ANDROID_EMU_TAG: default
XCODE_VERSION: 13.2
IOS_PLATFORM_VERSION: 15.2
IOS_DEVICE_NAME: iPhone X
NODE_VERSION: 16.x
XCODE_VERSION: 14.2
IOS_PLATFORM_VERSION: 16.2
IOS_DEVICE_NAME: iPhone 12
NODE_VERSION: 18.x
JDK_VERSION: 1.8

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