-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Submit coverage to coveralls in travis build
- Loading branch information
1 parent
eab9d0a
commit 8da0976
Showing
6 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,7 @@ language: node_js | |
node_js: | ||
- "0.11" | ||
- "0.10" | ||
before_script: | ||
- npm run jscov | ||
after_script: | ||
- npm run coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
var gulp = require('gulp'); | ||
var jscs = require('gulp-jscs'); | ||
var jscov = require('gulp-jscoverage'); | ||
|
||
gulp.task('lint', function() { | ||
gulp.task('jscs', function() { | ||
return gulp.src([ | ||
'src/*.js', | ||
'lib/*.js', | ||
'test/*.js' | ||
]).pipe(jscs()); | ||
}); | ||
|
||
gulp.task('jscov', function() { | ||
gulp.src('lib/*.js') | ||
.pipe(jscov('index.js')) | ||
.pipe(gulp.dest('./lib-cov')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = process.env.JSCOV | ||
? require('./lib-cov') | ||
: require('./lib/underscore.inflection.js'); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters