cordova-android/bin/bench

30 lines
665 B
Plaintext
Raw Normal View History

2011-09-02 04:11:01 +08:00
#! /bin/sh
#
2012-02-02 09:45:49 +08:00
# Creates an app in `./bench` that posts results to http://cordova-bench.heroku.com with current cordova/Android sha.
2011-09-02 04:11:01 +08:00
#
# USAGE
# ./bin/bench
#
# clobber any existing bench
if [ -e ./bench ]
then
rm -rf ./bench
fi
# create a benching app
2012-02-02 09:45:49 +08:00
./bin/create ./bench org.apache.cordova.bench cordovaBench
2011-09-02 04:11:01 +08:00
# grab the latest bench www code
2012-02-02 09:45:49 +08:00
git clone git@github.com:brianleroux/cordova-bench.git
2011-09-02 04:11:01 +08:00
# copy it into the app
2012-02-02 09:45:49 +08:00
cat ./cordova-bench/www/index.html > ./bench/assets/www/index.html
#cat ~/Desktop/cordova-bench/www/index.html > ./bench/assets/www/index.html
2011-09-02 04:11:01 +08:00
# clean up
2012-02-02 09:45:49 +08:00
rm -rf ./cordova-bench
2011-09-02 04:11:01 +08:00
# launch to the first device found
./bin/debug ./bench