cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject ios commit: CB-10888 Enable coverage reports collection via codecov
Date Thu, 17 Mar 2016 09:31:28 GMT
Repository: cordova-ios
Updated Branches:
  refs/heads/master 036765d32 -> f75bf6743


CB-10888 Enable coverage reports collection via codecov


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

Branch: refs/heads/master
Commit: f75bf67438257132e739238ed579d73271b3a716
Parents: 036765d
Author: Vladimir Kotikov <v-vlkoti@microsoft.com>
Authored: Wed Mar 16 18:05:18 2016 +0300
Committer: Vladimir Kotikov <v-vlkoti@microsoft.com>
Committed: Thu Mar 17 12:16:05 2016 +0300

----------------------------------------------------------------------
 .gitignore                      |  1 +
 .istanbul.yml                   |  5 +++++
 .travis.yml                     | 12 +++++++++---
 README.md                       |  1 +
 package.json                    | 14 ++++++++------
 tests/spec/unit/prepare.spec.js |  3 ++-
 6 files changed, 26 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/f75bf674/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index d1aeeeb..a15f7cb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,4 +7,5 @@ tmp
 xcuserdata
 console.log
 node_modules/
+coverage/
 npm-debug.log

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/f75bf674/.istanbul.yml
----------------------------------------------------------------------
diff --git a/.istanbul.yml b/.istanbul.yml
new file mode 100644
index 0000000..9824374
--- /dev/null
+++ b/.istanbul.yml
@@ -0,0 +1,5 @@
+instrumentation:
+    root: "bin/templates/scripts"
+    include-all-sources: true
+reporting:
+    print: "detail"

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/f75bf674/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index ba2b994..e75dea9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,12 @@
 language: objective-c
 sudo: false
 install:
-- npm install
-- npm install ios-deploy
-script: "npm test"
\ No newline at end of file
+    - npm install
+    - npm install ios-deploy
+    - npm install -g codecov
+script:
+    - npm run jshint
+    - npm run e2e-tests
+    - npm run objc-tests
+    - npm run cover
+after_script: codecov

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/f75bf674/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 5f27f7e..31741f9 100644
--- a/README.md
+++ b/README.md
@@ -21,6 +21,7 @@
 
 [![Build status](https://ci.appveyor.com/api/projects/status/github/apache/cordova-ios?branch=master)](https://ci.appveyor.com/project/Humbedooh/cordova-ios)
 [![Build Status](https://travis-ci.org/apache/cordova-ios.svg?branch=master)](https://travis-ci.org/apache/cordova-ios)
+[![codecov.io](https://codecov.io/github/apache/cordova-ios/coverage.svg?branch=master)](https://codecov.io/github/apache/cordova-ios?branch=master)
 
 Cordova iOS
 =============================================================

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/f75bf674/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 5f05f17..9b3dce5 100644
--- a/package.json
+++ b/package.json
@@ -16,21 +16,23 @@
   ],
   "scripts": {
     "test": "npm run jshint && npm run e2e-tests && npm run objc-tests &&
npm run unit-tests",
+    "cover": "istanbul cover node_modules/jasmine-node/bin/jasmine-node -- tests/spec/unit",
     "e2e-tests": "jasmine-node --captureExceptions --color tests/spec/create.spec.js",
     "objc-tests": "jasmine-node --captureExceptions --color tests/spec/cordovalib.spec.js",
     "unit-tests": "jasmine-node --captureExceptions --color tests/spec/unit",
-    "jshint": "node node_modules/jshint/bin/jshint bin && node node_modules/jshint/bin/jshint
tests"
+    "jshint": "jshint bin tests"
   },
   "author": "Apache Software Foundation",
   "license": "Apache Version 2.0",
   "devDependencies": {
-    "jshint": "^2.6.0",
-    "uncrustify": "^0.6.1",
-    "tmp": "^0.0.26",
-    "jasmine-node": "~1",
     "coffee-script": "^1.7.1",
+    "istanbul": "^0.4.2",
+    "jasmine-node": "~1",
+    "jshint": "^2.6.0",
+    "nodeunit": "^0.8.7",
     "rewire": "^2.5.1",
-    "nodeunit": "^0.8.7"
+    "tmp": "^0.0.26",
+    "uncrustify": "^0.6.1"
   },
   "dependencies": {
     "cordova-common": "^1.1.0",

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/f75bf674/tests/spec/unit/prepare.spec.js
----------------------------------------------------------------------
diff --git a/tests/spec/unit/prepare.spec.js b/tests/spec/unit/prepare.spec.js
index be8bb12..8c37894 100644
--- a/tests/spec/unit/prepare.spec.js
+++ b/tests/spec/unit/prepare.spec.js
@@ -23,6 +23,7 @@ var shell = require('shelljs');
 var plist = require('plist');
 var xcode = require('xcode');
 var rewire = require('rewire');
+var EventEmitter = require('events').EventEmitter;
 var Api = require('../../../bin/templates/scripts/cordova/Api');
 var prepare = rewire('../../../bin/templates/scripts/cordova/lib/prepare');
 
@@ -51,7 +52,7 @@ describe('prepare', function () {
     beforeEach(function() {
         shell.mkdir('-p', iosPlatform);
         shell.cp('-rf', iosProjectFixture + '/*', iosPlatform);
-        p = new Api('ios', iosPlatform);
+        p = new Api('ios', iosPlatform, new EventEmitter());
     });
 
     afterEach(function () {


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


Mime
View raw message