Skip to content

Commit

Permalink
Move Coveralls selection to gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
timdp committed Jun 17, 2016
1 parent dd333f7 commit cb42365
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ matrix:
- node_js: 6
- node_js: node
env: COVERALLS=1
after_success:
- '[[ "$COVERALLS" ]] && gulp coveralls'
7 changes: 5 additions & 2 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,16 @@ gulp.task('coverage', ['pre-coverage'], () => {
.pipe($.istanbul.enforceThresholds({thresholds: COVERAGE_THRESHOLDS}))
})

gulp.task('test', (cb) => seq('lint', 'coverage', cb))

gulp.task('coveralls', () => {
if (!process.env.COVERALLS) {
return
}
return gulp.src('coverage/lcov.info')
.pipe($.coveralls())
})

gulp.task('test', (cb) => seq('lint', 'coverage', 'coveralls', cb))

gulp.task('build', (cb) => seq('test', 'clean', 'transpile', cb))

gulp.task('watch', () => gulp.watch('{src,test}/**/*', ['build']))
Expand Down

0 comments on commit cb42365

Please sign in to comment.