Skip to content

Commit

Permalink
Merge 9c1e7aa into 6200879
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfisher committed Aug 7, 2018
2 parents 6200879 + 9c1e7aa commit 4376e2a
Show file tree
Hide file tree
Showing 4 changed files with 5,218 additions and 4,006 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
language: node_js
node_js:
- "10"
- "9"
- "8"
- "7"
- "6"
- "5"
Expand Down
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 4376e2a

Please sign in to comment.