mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-01-31 00:00:03 +08:00
added travis integration (doing test installation)
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@ node_modules/**
|
||||
tags
|
||||
.zedstate
|
||||
/www/umd-tough-cookie.js
|
||||
/temp
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
tags
|
||||
.zedstate
|
||||
/scripts
|
||||
/temp
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
"description": "Cordova / Phonegap plugin for communicating with HTTP servers using SSL pinning",
|
||||
"scripts": {
|
||||
"build": "cp node_modules/umd-tough-cookie/lib/umd-tough-cookie.js www/umd-tough-cookie.js",
|
||||
"prepublish": "npm run build"
|
||||
"prepublish": "npm run build",
|
||||
"test": "npm run build && ./scripts/test-installation.sh"
|
||||
},
|
||||
"cordova": {
|
||||
"id": "cordova-plugin-advanced-http",
|
||||
@@ -50,6 +51,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/silkimen/cordova-plugin-advanced-http#readme",
|
||||
"devDependencies": {
|
||||
"cordova": "7.0.1",
|
||||
"umd-tough-cookie": "2.3.2"
|
||||
}
|
||||
}
|
||||
|
||||
12
scripts/test-installation.sh
Executable file
12
scripts/test-installation.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/..
|
||||
CDV=$ROOT/node_modules/.bin/cordova
|
||||
|
||||
rm -rf $ROOT/temp
|
||||
$CDV create $ROOT/temp
|
||||
cd $ROOT/temp
|
||||
$CDV platforms add android
|
||||
$CDV platforms add ios
|
||||
$CDV plugins add $ROOT
|
||||
3
travis.yml
Normal file
3
travis.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- 'lts/*'
|
||||
Reference in New Issue
Block a user