Permalink
Browse files

Adding code coverage, badges to README and Slack notifications / supp…

…orted node versions to Travis file
  • Loading branch information...
1 parent 739be53 commit be9e6e64d44553ba544baabed9772a1200318675 @corymsmith corymsmith committed Oct 26, 2016
Showing with 55 additions and 7 deletions.
  1. +2 −0 .gitignore
  2. +17 −0 .istanbul.yml
  3. +3 −0 .npmignore
  4. +18 −3 .travis.yml
  5. +7 −0 README.md
  6. +2 −0 mocha.opts
  7. +6 −4 package.json
View
@@ -54,3 +54,5 @@ Session.vim
.idea
lib/
+
+coverage
View
@@ -0,0 +1,17 @@
+verbose: false
+instrumentation:
+ root: src/
+ excludes:
+ - lib/
+ include-all-sources: true
+reporting:
+ print: summary
+ reports:
+ - html
+ - text
+ - lcov
+ watermarks:
+ statements: [50, 80]
+ lines: [50, 80]
+ functions: [50, 80]
+ branches: [50, 80]
View
@@ -6,3 +6,6 @@ src/
test/
!lib/
.github/
+coverage
+.editorconfig
+.istanbul.yml
View
@@ -1,6 +1,21 @@
sudo: false
language: node_js
node_js:
- - "0.10"
- - "node"
- - "iojs"
+- node
+- '6'
+- '4'
+- iojs
+- '0.12'
+- '0.10'
+before_script:
+- npm install -g codeclimate-test-reporter
+after_script:
+- codeclimate-test-reporter < coverage/lcov.info
+addons:
+ code_climate:
+ repo_token: 6cae7ccef8603ea05d29c9b82aaf7f7b031a81685d761b678bd620908e43fa61
+notifications:
+ email: false
+ slack:
+ rooms:
+ secure: WSIVfYIDenOhaARb7qwsfrTVfMUzE+I/MH5ACk3JOHhmW71FTxsFFxou3MivylNn7mShgzsdcwsatU5m44brzmBwkzFLC3PIEMRCRdrBI8+c0FVT9t/URTg3O83EPIl+aBKYVjm+Cq+Xe1aEyGaut848mwPb2isKdCTuA4tvCQ7wq63ixp0ZY5x4+T0awWh4pQUTLHReGv5fx+TGC3cKqVh7mVj9J3o0p5qipOiRo6qnkMnkkmsLvL37P6MsgdTVwDrY8rNicvF+r2Pv0pFdZGxqhYspczIcamFBv00Hs5K9a1snKADUd4kCaUqpOOY0uDT+YjzeHk0J7krnFoqF2qqjdMbqns7gMLxm26kESxULuBAGtAHG0Qre6atKOmYHpGfAeaXnP5Fw+Z8xzNPlR0/lKVz9MIELPblKvJ0MskSHa+YRv4k+CsAZ2k5+9XMWINeSNR3+sAAl0U8PQ03zHBi6e6MUUfg1eke3U81Aptsz3v/Q2uhThXTRBphuFHqc/7iLGRjofA0iWjH/00uCb9xlk1/4fGsTG/2AveQh/ugQp/G6BfAAgwSq/TAgPEuqFVQXyS1aclcqcSow9/5fhE9QcAqzvtaNScIrlc+BqoTUwbPRiNxOI71SETYaT51SsWZdKEmecCsMrJVMRUZ+7BhGJOytlXr1A9h8JyIgBNs=
View
@@ -1,5 +1,12 @@
# feathers-twilio
+[![Build Status](https://travis-ci.org/feathersjs/feathers-twilio.png?branch=master)](https://travis-ci.org/feathersjs/feathers-twilio)
+[![Code Climate](https://codeclimate.com/github/feathersjs/feathers-twilio.png)](https://codeclimate.com/github/feathersjs/feathers-twilio)
+[![Test Coverage](https://codeclimate.com/github/feathersjs/feathers-twilio/badges/coverage.svg)](https://codeclimate.com/github/feathersjs/feathers-twilio/coverage)
+[![Dependency Status](https://img.shields.io/david/feathersjs/feathers-twilio.svg?style=flat-square)](https://david-dm.org/feathersjs/feathers-twilio)
+[![Download Status](https://img.shields.io/npm/dm/feathers-twilio.svg?style=flat-square)](https://www.npmjs.com/package/feathers-twilio)
+[![Slack Status](http://slack.feathersjs.com/badge.svg)](http://slack.feathersjs.com)
+
> A [Twilio](https://www.twilio.com) Service for [FeatherJS](https://github.com/feathersjs).
## Still a WIP
View
@@ -0,0 +1,2 @@
+--recursive test/
+--compilers js:babel-core/register
View
@@ -37,9 +37,10 @@
"compile": "rimraf lib/ && babel -d lib/ src/",
"watch": "babel --watch -d lib/ src/",
"lint": "eslint-if-supported semistandard --fix",
- "mocha": "mocha test/ --compilers js:babel-core/register",
- "test": "npm run compile && npm run lint && npm run mocha && nsp check",
- "start": "node example/app"
+ "mocha": "mocha --opts mocha.opts",
+ "test": "npm run compile && npm run lint && npm run coverage && nsp check",
+ "start": "node example/app",
+ "coverage": "istanbul cover node_modules/mocha/bin/_mocha -- --opts mocha.opts"
},
"semistandard": {
"env": [
@@ -72,10 +73,11 @@
"feathers": "^2.0.0-pre.4",
"feathers-rest": "^1.1.1",
"feathers-socketio": "^1.3.3",
+ "istanbul": "^1.1.0-alpha.1",
"mocha": "^2.2.5",
"nsp": "^2.2.0",
"rimraf": "^2.5.4",
"semistandard": "^9.1.0",
"sinon": "^1.17.3"
}
-}
+}

0 comments on commit be9e6e6

Please sign in to comment.