Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
10 changes: 6 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,17 @@ jobs:

variables:
ANDROID_EMU_NAME: test
ANDROID_SDK_ID: system-images;android-28;google_apis_playstore;x86
ANDROID_SDK_ID: system-images;android-30;google_apis_playstore;x86

steps:
- task: CmdLine@2
displayName: 'Configure Appium and Android SDK'
inputs:
script: |
echo "Configuring Environment"
export PATH=$PATH:$JAVA_HOME/bin
brew install --cask temurin@8
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
export PATH=$JAVA_HOME/bin:$PATH
echo export "ANDROID_HOME=\$ANDROID_HOME" >> ~/.bash_profile
export PATH=$PATH:$ANDROID_HOME

Expand All @@ -74,14 +76,14 @@ jobs:
$ANDROID_HOME/emulator/emulator -list-avds

echo "Starting emulator"
nohup $ANDROID_HOME/emulator/emulator -avd "$(ANDROID_EMU_NAME)" -gpu swiftshader_indirect -noaudio -no-boot-anim -no-snapshot > /dev/null 2>&1 &
nohup $ANDROID_HOME/emulator/emulator -avd "$(ANDROID_EMU_NAME)" -gpu swiftshader_indirect -noaudio -no-boot-anim -no-snapshot -verbose > /dev/null 2>&1 &
$ANDROID_HOME/platform-tools/adb wait-for-device
while [[ $? -ne 0 ]]; do sleep 1; $ANDROID_HOME/platform-tools/adb shell pm list packages; done;
$ANDROID_HOME/platform-tools/adb devices
echo "Emulator started"

echo "Installing Appium"
npm install -g appium@next
npm install -g appium@latest
ln -fs /usr/local/lib/node_modules/appium/build/lib/main.js /usr/local/bin/appium
chmod +x /usr/local/bin/appium
export PATH=$PATH:/usr/local/bin/appium
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,13 @@
<dependency>
<groupId>com.github.aquality-automation</groupId>
<artifactId>aquality-selenium-core</artifactId>
<version>4.0.3</version>
<version>4.6.0</version>
</dependency>

<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>9.2.3</version>
<version>9.5.0</version>
</dependency>

<dependency>
Expand All @@ -208,14 +208,14 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.14.0</version>
<version>3.17.0</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.16.1</version>
<version>2.19.0</version>
<scope>test</scope>
</dependency>

Expand Down
Loading