Skip to content

Commit

Permalink
Fail on JSHint issue + simulation for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lkrnac committed Oct 15, 2014
1 parent 957e2af commit 6924f1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var mocha = require('gulp-mocha');
var istanbul = require('gulp-istanbul');
var coveralls = require('gulp-coveralls');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var plumber = require('gulp-plumber');

var paths = {
Expand All @@ -19,6 +20,8 @@ gulp.task('build', function () {
return gulp.src(paths.scripts)
.pipe(plumber())
.pipe(jshint())
.pipe(jshint.reporter(stylish))
.pipe(jshint.reporter('fail'))
.pipe(traceur())
.pipe(gulp.dest('dist'));
});
Expand All @@ -32,6 +35,8 @@ gulp.task('test', ['build'], function (cb) {
gulp.src(paths.tests)
.pipe(plumber())
.pipe(jshint())
.pipe(jshint.reporter(stylish))
.pipe(jshint.reporter('fail'))
.pipe(traceur())
.pipe(gulp.dest('tmp'))
.pipe(mocha())
Expand Down
2 changes: 1 addition & 1 deletion test/jasstorPromiseSpec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use strict';
//'use strict';
//this include is only for debugging purposes
//var traceur = require('traceur');

Expand Down

0 comments on commit 6924f1a

Please sign in to comment.