Skip to content

Commit

Permalink
Fix plugin for supported node versions (#113)
Browse files Browse the repository at this point in the history
* Fix plugin for supported node versions

* bump version

* install plugin on ios pipeline

* fix android pipeline

* fix plugin

* fix runner
  • Loading branch information
SrinivasanTarget authored Jan 7, 2024
1 parent 3a2e7ec commit 15c330d
Show file tree
Hide file tree
Showing 8 changed files with 11,665 additions and 19,121 deletions.
6 changes: 3 additions & 3 deletions .azure-template/bootstrap.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "$(NODE_VERSION)"
versionSpec: '$(NODE_VERSION)'
- script: |
npm config delete prefix
npm config set prefix $NVM_DIR/versions/node/`node --version`
node --version
npm install -g appium@next
npm install -g wait-on
npm install -g appium
npm install -g wait-on
9 changes: 6 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ jobs:
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;$(ANDROID_EMU_TARGET);$(ANDROID_EMU_TAG);$(ANDROID_EMU_ABI)'
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n "$(ANDROID_EMU_NAME)" -k 'system-images;$(ANDROID_EMU_TARGET);$(ANDROID_EMU_TAG);$(ANDROID_EMU_ABI)' --force
echo $ANDROID_HOME/emulator/emulator -list-avds
echo "Starting emulator"
nohup $ANDROID_HOME/emulator/emulator -avd "$(ANDROID_EMU_NAME)" -no-snapshot -delay-adb > /dev/null 2>&1 &
nohup $ANDROID_HOME/emulator/emulator -avd "$(ANDROID_EMU_NAME)" -no-snapshot -delay-adb > /dev/null 2>&1 & $ANDROID_HOME/platform-tools/adb wait-for-any-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
echo '---'
echo '---'
$ANDROID_HOME/platform-tools/adb wait-for-device
$ANDROID_HOME/platform-tools/adb devices -l
echo "Emulator started"
Expand Down Expand Up @@ -61,7 +63,8 @@ jobs:
displayName: Prebuild XCUITest driver
- script: |
npm ci
$NVM_DIR/versions/node/$(node --version)/bin/appium plugin install --source=local .
nohup $NVM_DIR/versions/node/$(node --version)/bin/appium server -ka 800 --use-plugins=element-wait -pa /wd/hub &
$NVM_DIR/versions/node/$(node --version)/bin/wait-on http://127.0.0.1:4723/wd/hub/status
PLATFORM=ios npm run test-e2e
displayName: iOS E2E Test
displayName: iOS E2E Test
Loading

0 comments on commit 15c330d

Please sign in to comment.