script for update build on device and pull results

This commit is contained in:
ExMix 2013-03-22 10:53:20 +03:00 committed by Alex Zolotarev
parent 5366473097
commit 57cf499bc8

View file

@ -0,0 +1,25 @@
echo "start update benchmark system"
echo "get result from device"
filedate=`date +%d-%m-%y`
filepath=~/Dropbox/results/$filedate
filepath+="_result.txt"
adb pull /mnt/sdcard/MapsWithMe/bench/results.txt $filepath
cd ~/dev/omim/
echo "current work dir : " $PWD
git checkout master
echo "pull upstream"
git fetch upstream
git merge upstream/master
echo "move to android dir"
cd android/MapsWithMePro/
echo "current work dir : " $PWD
echo "rebuild application"
ant clean
ant release
echo "uninstall application from device"
adb uninstall com.mapswithme.maps.pro
echo "install new build"
adb install bin/MapsWithMePro-release.apk
echo "start application"
adb shell am start -n com.mapswithme.maps.pro/com.mapswithme.maps.DownloadResourcesActivity