Skip to content

Commit

Permalink
Merge pull request #27 from sirap-group/26-break-on-lint-errors-for-t…
Browse files Browse the repository at this point in the history
…ravis-build

Fix #26 break on lint errors for travis build
  • Loading branch information
Rémi Becheras committed Jan 4, 2017
2 parents 94874e2 + 06b634a commit f81d85d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ before_script:
- npm install -g gulp-cli
- npm install -g jscover
script:
- npm test
- npm run coverage
- npm run lint && npm run coverage
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ gulp.task('lint', function () {
return gulp.src(['./gulpfile.js', './lib/**/*.js', './tests/**/*.spec.js'])
.pipe(linter())
.pipe(linter.reporter('default', {
breakOnError: false
breakOnError: argv.breakOnError
}))
})

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"test": "gulp test",
"TDD": "gulp test 2> /dev/null; gulp watch",
"lint": "gulp lint --breakOnError",
"coverage": "gulp coverage"
},
"repository": {
Expand Down

0 comments on commit f81d85d

Please sign in to comment.