yunkong2.vis.cordova/plugins/cordova-plugin-certificates/runIntegrationTests.sh
2018-09-22 10:44:38 +08:00

16 lines
439 B
Bash

#!/bin/sh
cwd=$(pwd)
cd ..
rm -rf cordova-test-app
git clone https://github.com/hypery2k/cordova-demo-app.git cordova-test-app
cd cordova-test-app
npm install
bower install
echo "Building vanilla cordova app"
grunt "ci:$PLATFORM" "$PLATFORM"
echo "Adding plugin"
cordova plugin add ../cordova-certificate-plugin/
echo "Building vanilla cordova app with added plugin"
grunt "$PLATFORM"
echo "Changing back to plugin directy: "$cwd
cd $cwd