Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

74 lines (59 sloc) 1.535 kb
module.exports = (grunt) ->
# Load all grunt tasks available
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks)
grunt.initConfig {
bin:
covershot: './node_modules/covershot/bin/covershot'
coveralls: './node_modules/coveralls/bin/coveralls.js'
env:
test:
NODE_ENV: 'test'
coffeelint:
app: [ '*.coffee', 'lib/**/*.coffee', 'test/**/*.coffee' ],
options:
max_line_length:
value: 120
mochacli:
options:
reporter: 'nyan',
globals: ['data']
compilers: ['coffee:coffee-script']
all: ['test/**/*.coffee']
coffeeCoverage:
lib:
src: 'lib/'
dest: 'lib-cov/'
exec:
prepcov:
cmd: 'mkdir -p covershot/data'
htmlcov:
cmd: '<%= bin.covershot %> covershot/data -f html'
lcov:
cmd: '<%= bin.covershot %> covershot/data -f lcov'
coveralls:
cmd: 'cat covershot/coverage.lcov | <%= bin.coveralls %>'
clean:
coverage: ['lib-cov']
}
grunt.registerTask 'test', [
'env:test',
'coffeelint',
'mochacli'
]
grunt.registerTask 'coverage:instrument', [
'exec:prepcov',
'coffeeCoverage:lib',
]
grunt.registerTask 'coverage:html', [
'coverage:instrument',
'test',
'exec:htmlcov',
'clean:coverage'
]
grunt.registerTask 'coverage:travis', [
'coverage:instrument',
'test'
'exec:lcov',
'exec:coveralls'
]
grunt.registerTask 'default', ['test']
Jump to Line
Something went wrong with that request. Please try again.