2011-08-19 09:21:51 +08:00
|
|
|
#! /bin/sh
|
2011-09-02 04:11:01 +08:00
|
|
|
set -e
|
|
|
|
|
2011-08-19 10:20:41 +08:00
|
|
|
VERSION=$(cat ./VERSION)
|
2011-08-19 09:21:51 +08:00
|
|
|
|
2011-08-19 10:20:41 +08:00
|
|
|
# get the latest mobile-spec
|
|
|
|
git clone git@github.com:phonegap/mobile-spec.git
|
|
|
|
|
|
|
|
# clobber test if it exists
|
|
|
|
if [ -e ./test ]
|
|
|
|
then
|
|
|
|
rm -rf ./test
|
|
|
|
fi
|
|
|
|
|
|
|
|
# generate a working proj
|
2011-08-19 13:40:09 +08:00
|
|
|
./bin/create ./test com.phonegap.test PhoneGapTest
|
2011-08-19 10:20:41 +08:00
|
|
|
|
|
|
|
# kill the default app and replace it w/ mobile-spec
|
|
|
|
rm -rf ./test/assets/www
|
|
|
|
mv ./mobile-spec ./test/assets/www
|
|
|
|
|
|
|
|
# build it, launch it and start logging on stdout
|
2011-09-02 05:37:59 +08:00
|
|
|
cd ./test && ./bin/debug && ./bin/log
|