Skip to content

Commit 15c330d

Browse files
Fix plugin for supported node versions (#113)
* Fix plugin for supported node versions * bump version * install plugin on ios pipeline * fix android pipeline * fix plugin * fix runner
1 parent 3a2e7ec commit 15c330d

File tree

8 files changed

+11665
-19121
lines changed

8 files changed

+11665
-19121
lines changed

.azure-template/bootstrap.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
steps:
22
- task: NodeTool@0
33
inputs:
4-
versionSpec: "$(NODE_VERSION)"
4+
versionSpec: '$(NODE_VERSION)'
55
- script: |
66
npm config delete prefix
77
npm config set prefix $NVM_DIR/versions/node/`node --version`
88
node --version
9-
npm install -g appium@next
10-
npm install -g wait-on
9+
npm install -g appium
10+
npm install -g wait-on

azure-pipelines.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ jobs:
2828
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;$(ANDROID_EMU_TARGET);$(ANDROID_EMU_TAG);$(ANDROID_EMU_ABI)'
2929
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
3030
echo $ANDROID_HOME/emulator/emulator -list-avds
31-
31+
3232
echo "Starting emulator"
33-
nohup $ANDROID_HOME/emulator/emulator -avd "$(ANDROID_EMU_NAME)" -no-snapshot -delay-adb > /dev/null 2>&1 &
33+
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'
34+
echo '---'
35+
echo '---'
3436
$ANDROID_HOME/platform-tools/adb wait-for-device
3537
$ANDROID_HOME/platform-tools/adb devices -l
3638
echo "Emulator started"
@@ -61,7 +63,8 @@ jobs:
6163
displayName: Prebuild XCUITest driver
6264
- script: |
6365
npm ci
66+
$NVM_DIR/versions/node/$(node --version)/bin/appium plugin install --source=local .
6467
nohup $NVM_DIR/versions/node/$(node --version)/bin/appium server -ka 800 --use-plugins=element-wait -pa /wd/hub &
6568
$NVM_DIR/versions/node/$(node --version)/bin/wait-on http://127.0.0.1:4723/wd/hub/status
6669
PLATFORM=ios npm run test-e2e
67-
displayName: iOS E2E Test
70+
displayName: iOS E2E Test

0 commit comments

Comments
 (0)