Permalink
Browse files

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

…orted node versions to Travis file
  • Loading branch information...
1 parent 8e3ff54 commit d037c4fe1d6fc6173a98969b928f425c88a049ae @corymsmith corymsmith committed Oct 26, 2016
Showing with 49 additions and 5 deletions.
  1. +17 −0 .istanbul.yml
  2. +2 −0 .npmignore
  3. +19 −3 .travis.yml
  4. +5 −0 README.md
  5. +2 −0 mocha.opts
  6. +4 −2 package.json
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
@@ -7,3 +7,5 @@ src/
test/
!lib/
.github/
+coverage
+.istanbul.yml
View
@@ -1,5 +1,21 @@
language: node_js
node_js:
- - 'node'
- - 'iojs'
- - '0.12'
+- node
+- '6'
+- '4'
+- iojs
+- '0.12'
+- '0.10'
+sudo: false
+before_script:
+- npm install -g codeclimate-test-reporter
+after_script:
+- codeclimate-test-reporter < coverage/lcov.info
+addons:
+ code_climate:
+ repo_token: 02ea69f85221efd3051a19e882c87cebc07522bf321374186bb6116301569e5e
+notifications:
+ email: false
+ slack:
+ rooms:
+ secure: Rhu2a5JGw02NVtLbMC5NdlWk5MQd3pznCuZof9JJ8bOmyfiIvYdruhfnX0sHPwXE3LyLjRFgNCewmxd0NRsMrPV+lfgWXbHlA/gDn18S3GYWpJJhh6zRYk3PVqb4P09UrWC6kQ5tTRAtmerDKYPkDRyI1+IQDOwxOee8CbDN8se4HVaXmCXiq6m52s4uUBJY1s1ZQEOnW+TqHcjXyo3RTtRi7DDw33GO9KBdOsKpyQR2TCaCBaSmXml3BnDcgKuVJFwgb20WOvqpqQRfynYcdHXpo9ta2HRy4dZFMM8MXXGnosg9k4c4RTonuNq4s3/T5doVh79Y9iLjlD/nWMdul3NMzUv7s8s/5D6cPVEvqgox/pZQbI3ZSaa/MS09M3uJ3I8Bj+08XW5HJJ/yWXZyZhcxVcD8MUpee5rC3U1sbPDy9+esgXurLS1GidRkBHlEBIF1qqKRvslrsL/3a6GrPyHPki7gg/N7w4Yej+RawYsSBTbTi+Rurph6hbuMNQUm7/52gRQofsOnf+S4YCXbwbhxH0Ld3BNfMpmOIqMnVtgeBLSmk2XJMDmKGs2/wUUzSK6OZTBu+0SJ+ok9FKEFAoIc4GAGfJcYT3lfdtcaxnBDY4ESP/lYmhxAJJywa0e6Z3ogDV5IHjYArOhF/6ea6slqNiXLERBWopjhFX0WY90=
View
@@ -1,6 +1,11 @@
# feathers-authentication
[![Build Status](https://travis-ci.org/feathersjs/feathers-authentication.png?branch=master)](https://travis-ci.org/feathersjs/feathers-authentication)
+[![Code Climate](https://codeclimate.com/github/feathersjs/feathers-authentication.png)](https://codeclimate.com/github/feathersjs/feathers-authentication)
+[![Test Coverage](https://codeclimate.com/github/feathersjs/feathers-authentication/badges/coverage.svg)](https://codeclimate.com/github/feathersjs/feathers-authentication/coverage)
+[![Dependency Status](https://img.shields.io/david/feathersjs/feathers-authentication.svg?style=flat-square)](https://david-dm.org/feathersjs/feathers-authentication)
+[![Download Status](https://img.shields.io/npm/dm/feathers-authentication.svg?style=flat-square)](https://www.npmjs.com/package/feathers-authentication)
+[![Slack Status](http://slack.feathersjs.com/badge.svg)](http://slack.feathersjs.com)
> Add Authentication to your FeathersJS app.
View
@@ -0,0 +1,2 @@
+--recursive test/
+--compilers js:babel-core/register
View
@@ -35,8 +35,9 @@
"compile": "rimraf lib/ && babel -d lib/ src/ && mkdir lib/public/ && cp src/public/* lib/public/",
"watch": "babel --watch -d lib/ src/",
"jshint": "jshint src/. test/. --config",
- "mocha": "mocha --recursive test/ --compilers js:babel-core/register",
- "test": "npm run compile && npm run jshint && npm run mocha && nsp check"
+ "mocha": "mocha --opts mocha.opts",
+ "test": "npm run compile && npm run jshint && npm run coverage && nsp check",
+ "coverage": "istanbul cover node_modules/mocha/bin/_mocha -- --opts mocha.opts"
},
"directories": {
"lib": "lib"
@@ -67,6 +68,7 @@
"feathers-primus": "^1.3.2",
"feathers-rest": "^1.2.2",
"feathers-socketio": "^1.3.2",
+ "istanbul": "^1.1.0-alpha.1",
"jshint": "^2.8.0",
"localstorage-memory": "^1.0.2",
"mocha": "^3.0.0",

0 comments on commit d037c4f

Please sign in to comment.