Skip to content

Instantly share code, notes, and snippets.

@shodanuk
Created November 7, 2014 11:24
Show Gist options
  • Save shodanuk/c379f1db916ec7cbf129 to your computer and use it in GitHub Desktop.
Save shodanuk/c379f1db916ec7cbf129 to your computer and use it in GitHub Desktop.
TiCalabash android run script
if [ "$#" -ne 1 ]; then
echo
echo "Usage: run_android.sh <app_dir>"
echo
exit 1
fi
app=$1
# Uncomment the code below to check for a running Genymotion emulator
# running_gvms=`"/Applications/Genymotion Shell.app/Contents/MacOS/genyshell" -c "devices list" | grep -c "On |"`
# if [ ${running_gvms} -eq 0 ]
# then
# echo "No running Genymotion VMs. Start one and rerun this script. Exiting"
# echo
# exit 1
# fi
unset ANDROID_HOME
export ANDROID_HOME="<ANDROID_SDK_PATH>"
cd ${app}
rm -rf test_servers
ti clean
ti calabash --platform android
echo
echo +--------------------------------------------+
echo + Any screenshots are in the build directory +
echo +--------------------------------------------+
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment