Permalink
Browse files

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

…orted node versions to Travis file
  • Loading branch information...
1 parent f265990 commit aee29c1660991c3e2623f177177dee9c17c1e02f @corymsmith corymsmith committed Oct 26, 2016
Showing with 50 additions and 5 deletions.
  1. +17 −0 .istanbul.yml
  2. +2 −0 .npmignore
  3. +19 −2 .travis.yml
  4. +5 −0 README.md
  5. +2 −0 mocha.opts
  6. +5 −3 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
@@ -6,3 +6,5 @@ src/
test/
!lib/
.github/
+coverage
+.istanbul.yml
View
@@ -1,4 +1,21 @@
language: node_js
node_js:
- - 'node'
- - 'iojs'
+- 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: f257652e3779940938b104803a2334fc050944a063e291331fbceb8f181a60ce
+notifications:
+ email: false
+ slack:
+ rooms:
+ secure: hf7C6SzsvYYuFbqYXIjpdug2dMFWVvv4ZD4242yH8cjcbEzIbChjAgf4pOBi2y0VFH5H9lYgg7QOnACR4jz050aA2Q2YdTQWArT/bolGsTWBp5D+xq410AhrJ8WodJvnVZmIniaZ6DJXgB3zsweeOnI60OMkKgj9341N4L4AKyNJnDf3dZE4h2qtnurSi2r5yfEQs9KTNJCbDPBgAsGTdO0GVUeU9yGjZpk91n/TFWOv6SMgQ0Li6lmkizdrzE3dPCFPRVKWDd41HRXfyUkGlrrnKuq3pX6uQBglrcs9XIKyyAF5AsGxBAnFRoi0DTBb+QCyj6uDBCLRJqD65poxE9JWAt3mzxWEsB+UAT5BUcNXmNNZzAl90+4BxAU9IstrejOk5035djrSlvwAiHyEpi2nhV6an3Bb+2WET3vCrp70m3nnryQnPsk3l+usIRSehgIAJ9wIq1NkrhEAu0Ug9OWPYWn0N5NvojGXMxJ6SgeAaeTq3hunY5BncX9rS+wrRsoTCKQu5n8UD1RdpqxRzB706/qS0Icphk0T/QmIkw8n6BZtI4c2BKcNC0He2ocw8UY/NQkKUvG/sZRsZE+c5jhmYcqvM0xLK/Ufrpf+lYQF6fSJwu0j6EPahvzf9H4ACZDA1Dxt/+cjWUHpFcSOLuMa2TIXAx3VYUQDaOTJ1Z8=
View
@@ -1,6 +1,11 @@
# feathers-mailer
[![Build Status](https://travis-ci.org/feathersjs/feathers-mailer.png?branch=master)](https://travis-ci.org/feathersjs/feathers-mailer)
+[![Code Climate](https://codeclimate.com/github/feathersjs/feathers-mailer.png)](https://codeclimate.com/github/feathersjs/feathers-mailer)
+[![Test Coverage](https://codeclimate.com/github/feathersjs/feathers-mailer/badges/coverage.svg)](https://codeclimate.com/github/feathersjs/feathers-mailer/coverage)
+[![Dependency Status](https://img.shields.io/david/feathersjs/feathers-mailer.svg?style=flat-square)](https://david-dm.org/feathersjs/feathers-mailer)
+[![Download Status](https://img.shields.io/npm/dm/feathers-mailer.svg?style=flat-square)](https://www.npmjs.com/package/feathers-mailer)
+[![Slack Status](http://slack.feathersjs.com/badge.svg)](http://slack.feathersjs.com)
> Feathers mailer service using [`nodemailer`](https://github.com/nodemailer/nodemailer)
View
@@ -0,0 +1,2 @@
+--recursive test/
+--compilers js:babel-core/register
View
@@ -38,9 +38,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",
- "example": "babel-node examples/app"
+ "mocha": "mocha --opts mocha.opts",
+ "test": "npm run compile && npm run lint && npm run coverage",
+ "example": "babel-node examples/app",
+ "coverage": "istanbul cover node_modules/mocha/bin/_mocha -- --opts mocha.opts"
},
"semistandard": {
"env": [
@@ -68,6 +69,7 @@
"eslint-if-supported": "^1.0.1",
"feathers": "^2.0.0",
"feathers-rest": "^1.2.3",
+ "istanbul": "^1.1.0-alpha.1",
"mocha": "^2.4.5",
"nodemailer-mandrill-transport": "^1.1.0",
"nodemailer-stub-transport": "^1.0.0",

0 comments on commit aee29c1

Please sign in to comment.