-
Notifications
You must be signed in to change notification settings - Fork 713
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master-src' into master-rc: open callback (#109) implem…
- Loading branch information
Showing
8 changed files
with
677 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
.DS_Store | ||
.plugin | ||
.metadata/* | ||
*.swp | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Automated cordova tests. Installs the correct cordova platform, | ||
# installs the plugin, installs the test app, and then runs it on | ||
# a device or emulator. | ||
# | ||
# usage: .\bin\test.ps1 [android|ios|wp8] | ||
|
||
# N.B. if you functionally change this script you _must_ change .\bin\test.sh too. | ||
|
||
param([string]$platform) | ||
|
||
if (! $platform) { | ||
echo "usage: .\bin\test.sh [android|ios|wp8]" | ||
exit 1 | ||
} | ||
|
||
if (! (get-command coffee) ) { | ||
echo "you need coffeescript. please install with:" | ||
echo "npm install -g coffee-script" | ||
exit 1 | ||
} | ||
|
||
if (! (get-command cordova) ) { | ||
echo "you need cordova. please install with:" | ||
echo "npm install -g cordova" | ||
exit 1 | ||
} | ||
|
||
|
||
pushd test-www | ||
if (!$?) { # run from the bin/ directory | ||
echo "re-pushing" | ||
pushd ../test-www | ||
} | ||
try { | ||
# compile coffeescript | ||
coffee --no-header -cl -o ../www ../SQLitePlugin.coffee.md | ||
if (!$?) { | ||
echo "coffeescript compilation failed" | ||
exit 1 | ||
} | ||
echo "compiled coffeescript to javascript" | ||
|
||
# move everything to a temp folder to avoid infinite recursion errors | ||
if (test-path ../.plugin) { | ||
rm -force -recurse ../.plugin -ErrorAction ignore | ||
} | ||
mkdir -ErrorAction ignore ../.plugin | out-null | ||
cp -recurse ../src, ../plugin.xml, ../www ../.plugin | ||
|
||
# update the plugin, run the test app | ||
cordova platform add $platform | ||
cordova plugin rm com.phonegap.plugins.sqlite | ||
cordova plugin add ../.plugin | ||
cordova run $platform | ||
} finally { | ||
popd | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.