Skip to content

Commit

Permalink
keep coverage information around, just gitignore it
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed Oct 21, 2014
1 parent b921072 commit ed5686d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
coverage
10 changes: 2 additions & 8 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ var jscs = require('gulp-jscs');
var filter = require('gulp-filter');
var istanbul = require('gulp-istanbul');
var exec = require('child_process').exec;
var del = require('del');

var COMPILER_PATH = 'node_modules/closurecompiler/compiler/compiler.jar';
var LIBTESS_SRC = ['./src/libtess.js', './src/**/*.js'];
Expand Down Expand Up @@ -135,9 +134,7 @@ gulp.task('coverage', ['build'], function(doneCallback) {
ui: 'tdd'
}))

.pipe(istanbul.writeReports({
reporters: ['lcovonly']
}))
.pipe(istanbul.writeReports())
.on('end', function() {
// send coverage information to coveralls.io
// TODO(bckenny): only do this when running on travis?
Expand All @@ -146,10 +143,7 @@ gulp.task('coverage', ['build'], function(doneCallback) {
function(error, stdout, stderr) {
console.log('stdout: ' + stdout);
console.log('stderr: ' + stderr);

del('./coverage', function(err) {
doneCallback(error);
});
doneCallback(error);
});
});
});
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"chai": "^1.9.2",
"closurecompiler": "^1.3.2",
"coveralls": "^2.11.2",
"del": "^0.1.3",
"envify": "^3.0.0",
"glob": "^4.0.6",
"gulp": "^3.8.8",
Expand Down

0 comments on commit ed5686d

Please sign in to comment.