Skip to content

Commit

Permalink
Merge ee22105 into 6200879
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfisher committed Aug 7, 2018
2 parents 6200879 + ee22105 commit 6df951d
Show file tree
Hide file tree
Showing 3 changed files with 5,215 additions and 4,006 deletions.
20 changes: 13 additions & 7 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,32 @@ var jscs = require('gulp-jscs');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');

gulp.task('spec', function() {
function spec() {
return gulp.src(['tests/*.spec.js'])
.pipe(tape({
reporter: tapSpec()
}));
});
};

gulp.task('jscs', function() {
function jscs() {
return gulp.src(['tests/*.spec.js', 'tests/helpers/*.js', 'avrgirl-arduino.js', 'lib/*.js'], { base: "./" })
.pipe(jscs({fix: true}))
.pipe(gulp.dest('.'))
.pipe(jscs.reporter())
.pipe(jscs.reporter('fail'))
});
};

gulp.task('lint', function() {
function lint() {
return gulp.src(['tests/*.spec.js', 'tests/helpers/*.js', 'avrgirl-arduino.js', 'lib/*.js'])
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'))
.pipe(jshint.reporter('fail'));
});
};

gulp.task('test', ['spec', 'lint']);
exports.spec = spec;
exports.jscs = jscs;
exports.lint = lint;

var test = gulp.series(lint, spec);

gulp.task('test', test);
Loading

0 comments on commit 6df951d

Please sign in to comment.