Created
November 7, 2014 11:24
-
-
Save shodanuk/c379f1db916ec7cbf129 to your computer and use it in GitHub Desktop.
TiCalabash android run script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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