Skip to content
This repository has been archived by the owner on Mar 22, 2022. 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 8e3ff54 commit d037c4f
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 5 deletions.
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]
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ src/
test/
!lib/
.github/
coverage
.istanbul.yml
22 changes: 19 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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=
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
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
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit d037c4f

Please sign in to comment.