mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
adding benchmarking automation
This commit is contained in:
parent
9aacb7f811
commit
e7f206b598
29
bin/bench
Executable file
29
bin/bench
Executable file
@ -0,0 +1,29 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# Creates an app in `./bench` that posts results to http://phonegap-bench.heroku.com with current PhoneGap/Android sha.
|
||||
#
|
||||
# USAGE
|
||||
# ./bin/bench
|
||||
#
|
||||
|
||||
# clobber any existing bench
|
||||
if [ -e ./bench ]
|
||||
then
|
||||
rm -rf ./bench
|
||||
fi
|
||||
|
||||
# create a benching app
|
||||
./bin/create ./bench com.phonegap.bench PhoneGapBench
|
||||
|
||||
# grab the latest bench www code
|
||||
git clone git@github.com:brianleroux/phonegap-bench.git
|
||||
|
||||
# copy it into the app
|
||||
cat ./phonegap-bench/www/index.html > ./bench/assets/www/index.html
|
||||
#cat ~/Desktop/phonegap-bench/www/index.html > ./bench/assets/www/index.html
|
||||
|
||||
# clean up
|
||||
rm -rf ./phonegap-bench
|
||||
|
||||
# launch to the first device found
|
||||
./bin/debug ./bench
|
@ -5,6 +5,8 @@
|
||||
# USAGE
|
||||
# ./create [path package activity]
|
||||
#
|
||||
set -e
|
||||
|
||||
PROJECT_PATH=${1:-"./example"}
|
||||
PACKAGE=${2:-"com.phonegap.example"}
|
||||
ACTIVITY=${3:-"PhoneGapExample"}
|
||||
|
2
bin/test
2
bin/test
@ -1,4 +1,6 @@
|
||||
#! /bin/sh
|
||||
set -e
|
||||
|
||||
VERSION=$(cat ./VERSION)
|
||||
|
||||
# get the latest mobile-spec
|
||||
|
0
bin/tests/debug.coffee
Normal file
0
bin/tests/debug.coffee
Normal file
Loading…
Reference in New Issue
Block a user