Skip to content

Instantly share code, notes, and snippets.

@Jacobvu84
Last active November 8, 2019 09:40
Show Gist options
  • Save Jacobvu84/78606ed9097b844def11d2b84c9ef707 to your computer and use it in GitHub Desktop.
Save Jacobvu84/78606ed9097b844def11d2b84c9ef707 to your computer and use it in GitHub Desktop.
Config
#!/bin/bash
export PATH="$PATH:/usr/local/bin/"
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH="$PATH:$JAVA_HOME/bin"
export M2_HOME="/Applications/apache-maven-3.6.0"
export PATH="$PATH:$M2_HOME/bin"
export ANDROID_HOME="/Users/Jacob/Library/Android/sdk"
export PATH="${PATH}:$ANDROID_HOME/platform-tools"
export PATH="${PATH}:$ANDROID_HOME/emulator"
CURRENT_DATE=`date +"%Y-%m-%dT%H-%M-%S"`
APPIUM_PORT_ANDROID=4724
adb -s 2b850b2401057ece uninstall io.appium.uiautomator2.server
adb -s 2b850b2401057ece uninstall io.appium.uiautomator2.server.test
appium -p ${APPIUM_PORT_ANDROID} -a 0.0.0.0 --session-override --log-level info --log "/Users/Jacob/appium_logs/android/${CURRENT_DATE}-log.txt" &
sleep 10
git submodule update --init --recursive
mvn -pl line-cset-ui-test clean verify -Dproperties=android.properties -Dcontext=android -Dserenity.laat=ci -Dtags="android" -Dit.test=$SCENARIO
ps -A | grep appium | grep ${APPIUM_PORT_ANDROID} | awk '{print $1}' | xargs kill -9
#ps -A | grep appium | grep adb | grep 2b850b2401057ece | awk '{print $1}' | xargs kill -9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment