Skip to content

Commit

Permalink
adding benchmarking automation
Browse files Browse the repository at this point in the history
  • Loading branch information
brianleroux committed Sep 1, 2011
1 parent 9aacb7f commit e7f206b
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
29 changes: 29 additions & 0 deletions bin/bench
Original file line number Diff line number Diff line change
@@ -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 [email protected]: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
2 changes: 2 additions & 0 deletions bin/create
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# USAGE
# ./create [path package activity]
#
set -e

PROJECT_PATH=${1:-"./example"}
PACKAGE=${2:-"com.phonegap.example"}
ACTIVITY=${3:-"PhoneGapExample"}
Expand Down
2 changes: 2 additions & 0 deletions bin/test
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#! /bin/sh
set -e

VERSION=$(cat ./VERSION)

# get the latest mobile-spec
Expand Down
Empty file added bin/tests/debug.coffee
Empty file.

0 comments on commit e7f206b

Please sign in to comment.