cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject cordova-lib git commit: CB-10531 Enable coverage reports for cordova-lib
Date Thu, 04 Feb 2016 20:07:29 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master 1fd2dd857 -> 934947eea


CB-10531 Enable coverage reports for cordova-lib


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/934947ee
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/934947ee
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/934947ee

Branch: refs/heads/master
Commit: 934947eea139194da31919051705cde6a712f080
Parents: 1fd2dd8
Author: Vladimir Kotikov <v-vlkoti@microsoft.com>
Authored: Thu Feb 4 13:38:42 2016 +0300
Committer: Vladimir Kotikov <v-vlkoti@microsoft.com>
Committed: Thu Feb 4 14:58:33 2016 +0300

----------------------------------------------------------------------
 .travis.yml              | 23 ++++++++---------------
 README.md                |  1 +
 appveyor.yml             | 22 ++++++----------------
 cordova-lib/package.json | 10 ++++++----
 4 files changed, 21 insertions(+), 35 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/934947ee/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 7366915..bb404a1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,20 +7,13 @@ node_js:
   - "0.12"
   - "4.2"
 install:
-  - cd ..
   - git clone https://github.com/apache/cordova-js --depth 10
-  - cd cordova-js
-  - npm install
-  - npm link
-  - cd ../cordova-lib/cordova-common
-  - npm install
-  - npm test
-  - npm link
-  - cd ../cordova-serve
-  - npm install
-  - npm link
-  - cd ../cordova-lib
-  - npm link cordova-js
-  - npm link cordova-common
-  - npm link cordova-serve
+  - cd cordova-lib
+  - npm link ../cordova-js
+  - npm link ../cordova-common
+  - npm link ../cordova-serve
   - npm install
+
+script:
+  - "(cd ../cordova-common && npm test)"
+  - "npm run ci"

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/934947ee/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 95f2723..a3003c0 100644
--- a/README.md
+++ b/README.md
@@ -21,6 +21,7 @@
 
 [![Build status](https://ci.appveyor.com/api/projects/status/q9s459ssqvs1t7j6/branch/master)](https://ci.appveyor.com/project/Humbedooh/cordova-lib)
 [![Build Status](https://travis-ci.org/apache/cordova-lib.svg?branch=master)](https://travis-ci.org/apache/cordova-lib)
+[![Code coverage](https://codecov.io/github/apache/cordova-lib/coverage.svg?branch=master)](https://codecov.io/github/apache/cordova-lib?branch=master)
 [![NPM](https://nodei.co/npm/cordova.png)](https://nodei.co/npm/cordova/)
 
 [BuildBot waterfall](http://ci.cordova.io/) with [cordova-mobile-spec](https://github.com/apache/cordova-mobile-spec)
running on real Android and iOS devices.

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/934947ee/appveyor.yml
----------------------------------------------------------------------
diff --git a/appveyor.yml b/appveyor.yml
index 9fd3215..36e2b26 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -2,22 +2,11 @@
 # http://www.appveyor.com/docs/appveyor-yml
 
 install:
-  - cd ..
   - git clone https://github.com/apache/cordova-js --depth 10
-  - cd cordova-js
-  - npm install
-  - npm link
-  - cd ..\cordova-lib\cordova-common
-  - npm install
-  - npm test
-  - npm link
-  - cd ..\cordova-serve
-  - npm install
-  - npm link
-  - cd ..\cordova-lib
-  - npm link cordova-js
-  - npm link cordova-common
-  - npm link cordova-serve
+  - cd cordova-lib
+  - npm link ../cordova-js
+  - npm link ../cordova-common
+  - npm link ../cordova-serve
   - npm install
 
 build: off
@@ -25,4 +14,5 @@ build: off
 test_script:
   - node --version
   - npm --version
-  - npm test
+  - "cd ../cordova-common && npm test"
+  - "cd ../cordova-lib && npm test"

http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/934947ee/cordova-lib/package.json
----------------------------------------------------------------------
diff --git a/cordova-lib/package.json b/cordova-lib/package.json
index c8ff0a7..0be249d 100644
--- a/cordova-lib/package.json
+++ b/cordova-lib/package.json
@@ -16,7 +16,7 @@
     "node": ">=0.9.9"
   },
   "engineStrict": true,
-  "cordovaPlugins" : {
+  "cordovaPlugins": {
     "cordova-plugin-battery-status": "~1.1.1",
     "cordova-plugin-camera": "~2.1.0",
     "cordova-plugin-console": "~1.0.2",
@@ -71,6 +71,7 @@
     "cordova-common"
   ],
   "devDependencies": {
+    "codecov": "^1.0.1",
     "istanbul": "^0.3.4",
     "jasmine-node": "1.14.5",
     "jshint": "2.5.8",
@@ -78,9 +79,10 @@
   },
   "scripts": {
     "test": "npm run jshint && npm run jasmine",
-    "jshint": "node node_modules/jshint/bin/jshint src && node node_modules/jshint/bin/jshint
spec-cordova && node node_modules/jshint/bin/jshint spec-plugman",
-    "jasmine": "node node_modules/jasmine-node/bin/jasmine-node --captureExceptions --color
spec-plugman spec-cordova",
-    "cover": "node node_modules/istanbul/lib/cli.js cover --root src --print detail node_modules/jasmine-node/bin/jasmine-node
-- spec-cordova spec-plugman"
+    "ci": "npm run jshint && npm run cover && codecov",
+    "jshint": "jshint src spec-cordova spec-plugman",
+    "jasmine": "jasmine-node --captureExceptions --color spec-plugman spec-cordova",
+    "cover": "istanbul cover --root src --print detail node_modules/jasmine-node/bin/jasmine-node
-- spec-cordova spec-plugman"
   },
   "contributors": [
     {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message