diff options
author | ExMix <rahuba.youri@gmail.com> | 2013-03-22 11:53:20 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:52:09 +0300 |
commit | 57cf499bc8cb4f3a89af451a15ddf11d1c2daf92 (patch) | |
tree | d6750077f3cab3bb5cd0266e12648cb8560bd097 /data | |
parent | 5366473097864d3b241d8c277ed87993fa35827f (diff) |
script for update build on device and pull results
Diffstat (limited to 'data')
-rwxr-xr-x | data/benchmarks/update_benchmark.sh | 25 |
1 files changed, 25 insertions, 0 deletions
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 + |