依赖文件
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "cordova-plugin-googlemaps-tests",
|
||||
"version": "0.0.3-dev",
|
||||
"description": "",
|
||||
"cordova": {
|
||||
"id": "cordova-plugin-googlemaps-tests",
|
||||
"platforms": []
|
||||
},
|
||||
"keywords": [
|
||||
"ecosystem:cordova"
|
||||
],
|
||||
"author": "",
|
||||
"license": "Apache 2.0"
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
||||
xmlns:rim="http://www.blackberry.com/ns/widgets"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
id="cordova-plugin-googlemaps-tests"
|
||||
version="4.0.2-dev">
|
||||
<name>Cordova Geolocation Plugin Tests</name>
|
||||
<license>Apache 2.0</license>
|
||||
|
||||
|
||||
<js-module src="tests.js" name="tests">
|
||||
</js-module>
|
||||
</plugin>
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
exports.defineAutoTests = function () {
|
||||
|
||||
describe('FirebaseCore (plugin.firebase.app)', function () {
|
||||
|
||||
it('plugin.firebase.app should exist', function () {
|
||||
expect(plugin.firebase.app).toBeDefined();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
set -o nounset
|
||||
set -o errexit
|
||||
|
||||
# run tests appropriate for platform
|
||||
#if [[ "${CORDOVA_PLATFORM}" == "browser" ]]; then
|
||||
# npm run test:browser
|
||||
#fi
|
||||
if [[ "${CORDOVA_PLATFORM}" == "ios" ]]; then
|
||||
sudo gem install cocoapods
|
||||
npm install -g ios-sim ios-deploy
|
||||
npm run test:ios
|
||||
fi
|
||||
echo "CORDOVA_PLATFORM=${CORDOVA_PLATFORM}"
|
||||
echo "TRAVIS_OS_NAME=${TRAVIS_OS_NAME}"
|
||||
|
||||
if [[ "${CORDOVA_PLATFORM}" == "android" ]]; then
|
||||
echo "y" | sdkmanager "platforms;android-${ANDROID_API}"; > /dev/null;
|
||||
echo "y" | android update sdk -a --no-ui --filter android-${ANDROID_API} > /dev/null
|
||||
echo "y" | android update sdk -a --no-ui --filter sys-img-armeabi-v7a-android-${ANDROID_API} > /dev/null
|
||||
echo no | android create avd --force -n test -t android-${ANDROID_API} --abi armeabi-v7a > /dev/null
|
||||
emulator -avd test -no-skin -no-window &
|
||||
android-wait-for-emulator
|
||||
adb shell input keyevent 82 &
|
||||
adb wait-for-device get-serialno
|
||||
npm run test:android
|
||||
fi
|
||||
Reference in New Issue
Block a user