mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
30 lines
665 B
Bash
Executable File
30 lines
665 B
Bash
Executable File
#! /bin/sh
|
|
#
|
|
# Creates an app in `./bench` that posts results to http://cordova-bench.heroku.com with current cordova/Android sha.
|
|
#
|
|
# USAGE
|
|
# ./bin/bench
|
|
#
|
|
|
|
# clobber any existing bench
|
|
if [ -e ./bench ]
|
|
then
|
|
rm -rf ./bench
|
|
fi
|
|
|
|
# create a benching app
|
|
./bin/create ./bench org.apache.cordova.bench cordovaBench
|
|
|
|
# grab the latest bench www code
|
|
git clone git@github.com:brianleroux/cordova-bench.git
|
|
|
|
# copy it into the app
|
|
cat ./cordova-bench/www/index.html > ./bench/assets/www/index.html
|
|
#cat ~/Desktop/cordova-bench/www/index.html > ./bench/assets/www/index.html
|
|
|
|
# clean up
|
|
rm -rf ./cordova-bench
|
|
|
|
# launch to the first device found
|
|
./bin/debug ./bench
|