Skip to content

Commit

Permalink
Merge 998b997 into 09b85aa
Browse files Browse the repository at this point in the history
  • Loading branch information
1syo committed Jul 3, 2014
2 parents 09b85aa + 998b997 commit af848a9
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 2 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
travis_token: PUzF3MNGoIiIeYJIwvVZ7WZrYjftgbsQd
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ node_js:
- "0.10"
before_install: npm install -g grunt-cli
install: npm install
before_script: mkdir coverage
script:
- grunt test
- grunt coffeelint
after_script: cat ./coverage/lcov.info| ./node_modules/coveralls/bin/coveralls.js
notifications:
email: false
10 changes: 9 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@ module.exports = function(grunt) {
test: {
options: {
reporter: 'spec',
require: 'coffee-script'
require: ['coffee-script']
},
src: ['test/**/*.coffee']
},
coverage: {
options: {
reporter: "mocha-lcov-reporter",
quiet: true,
captureFile: "coverage/lcov.info"
},
src: ["test/**/*.coffee"]
}
},
release: {
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[![Build Status](http://img.shields.io/travis/1syo/hubot-classnamer.svg?style=flat)](https://travis-ci.org/1syo/hubot-classnamer)
[![Coverage Status](http://img.shields.io/coveralls/1syo/hubot-classnamer.svg?style=flat)](https://coveralls.io/r/1syo/hubot-classnamer)

# hubot-classnamer

Class name generator.
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
"grunt-release": "~0.6.0",
"matchdep": "~0.1.2",
"grunt-contrib-watch": "~0.5.3",
"grunt-coffeelint": "*"
"grunt-coffeelint": "*",
"mocha-lcov-reporter": "*",
"blanket": "*",
"coveralls": "*"
},

"main": "index.coffee",
Expand Down
6 changes: 6 additions & 0 deletions test/classnamer-test.coffee
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
require("blanket") {
"data-cover-never": ["node_modules", "hubot/src"]
pattern: "classnamer.coffee"
loader: "./node-loaders/coffee-script"
}

Robot = require("hubot/src/robot")
TextMessage = require("hubot/src/message").TextMessage

Expand Down

0 comments on commit af848a9

Please sign in to comment.