Remove coverage stuff

This commit is contained in:
Aaron Jensen 2015-08-01 08:43:21 -07:00
parent 743b603216
commit 30ff2553fc
2 changed files with 5 additions and 39 deletions

View File

@ -1,13 +1,9 @@
'use strict'; // eslint-disable-line
var path = require('path');
var gulp = require('gulp');
var eslint = require('gulp-eslint');
var excludeGitignore = require('gulp-exclude-gitignore');
var mocha = require('gulp-mocha');
var istanbul = require('gulp-istanbul');
var nsp = require('gulp-nsp');
var plumber = require('gulp-plumber');
var coveralls = require('gulp-coveralls');
var babel = require('gulp-babel');
// Initialize the babel transpiler so ES2015 files gets compiled
@ -26,37 +22,9 @@ gulp.task('nsp', function (cb) {
nsp('package.json', cb);
});
gulp.task('pre-test', function () {
return gulp.src('lib/**/*.js')
.pipe(babel())
.pipe(istanbul({includeUntested: true}))
.pipe(istanbul.hookRequire());
});
gulp.task('test', ['pre-test'], function (cb) {
var mochaErr;
gulp.src('test/**/*.js')
.pipe(plumber())
.pipe(mocha({reporter: 'spec'}))
.on('error', function (err) {
console.log('err', err);
mochaErr = err;
})
.pipe(istanbul.writeReports())
.on('end', function () {
console.log('end', mochaErr);
cb(mochaErr);
});
});
gulp.task('coveralls', ['test'], function () {
if (!process.env.CI) {
return;
}
return gulp.src(path.join(__dirname, 'coverage/lcov.info'))
.pipe(coveralls());
gulp.task('test', function () {
return gulp.src('test/**/*.js')
.pipe(mocha({reporter: 'spec'}));
});
gulp.task('babel', function () {
@ -66,4 +34,4 @@ gulp.task('babel', function () {
});
gulp.task('prepublish', ['nsp', 'babel']);
gulp.task('default', ['static', 'test', 'coveralls']);
gulp.task('default', ['static', 'test']);

View File

@ -35,12 +35,10 @@
"eslint-config-airbnb": "0.0.7",
"gulp": "^3.6.0",
"gulp-babel": "^5.1.0",
"gulp-coveralls": "^0.1.0",
"gulp-eslint": "^0.15.0",
"gulp-exclude-gitignore": "^1.0.0",
"gulp-istanbul": "^0.9.0",
"gulp-mocha": "^2.0.0",
"gulp-nsp": "^0.4.5",
"gulp-plumber": "^1.0.0"
"lodash": "^3.0.0"
}
}