diff --git a/data/benchmarks/update_benchmark.sh b/data/benchmarks/update_benchmark.sh new file mode 100755 index 0000000000..e85a5f1669 --- /dev/null +++ b/data/benchmarks/update_benchmark.sh @@ -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 +