Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

Commit

Permalink
Adding code coverage, badges to README and Slack notifications / supp…
Browse files Browse the repository at this point in the history
…orted node versions to Travis file
  • Loading branch information
corymsmith committed Oct 26, 2016
1 parent 739be53 commit be9e6e6
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ Session.vim
.idea

lib/

coverage
17 changes: 17 additions & 0 deletions .istanbul.yml
Original file line number Diff line number Diff line change
@@ -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]
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ src/
test/
!lib/
.github/
coverage
.editorconfig
.istanbul.yml
21 changes: 18 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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=
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--recursive test/
--compilers js:babel-core/register
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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.