Skip to content

Commit

Permalink
Merge branch 'coveralls' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
atticoos committed Nov 8, 2015
2 parents cdeae7e + 204da22 commit 1ce0f7d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ cache:
directories:
- node_modules

after_script: 'gulp coveralls'

notifications:
slack:
secure: AcgM4v8ZbWRW0jTGE+1L5HMSkW6D+f69JdoO+duCTHIzkIXtH2MHbO2tLczFUPVoSq7u+VL8+9gV+HHp4nn7IK12GTEYsd6SfCNZBSGLw3kK7tuupsdMAg0tIl+3zyhyQSwGG3sr/ZXQ7Tce8qDKSJ37YzT3R6EZSqSaACdE708=
10 changes: 8 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ var gulp = require('gulp'),
jscs = require('gulp-jscs'),
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish'),
istanbul = require('gulp-istanbul');
istanbul = require('gulp-istanbul'),
coveralls = require('gulp-coveralls');

gulp.task('lint', function () {
return gulp.src(['gulp-ng-config.js', 'test/stream.js'])
Expand All @@ -23,13 +24,18 @@ gulp.task('pre-test', function () {
return gulp.src('gulp-ng-config.js')
.pipe(istanbul())
.pipe(istanbul.hookRequire());
})
});

gulp.task('unittest', ['pre-test'], function () {
return gulp.src('test/stream.js')
.pipe(mocha({reporter: 'spec'}))
.pipe(istanbul.writeReports());
});

gulp.task('coveralls', function () {
return gulp.src('coverage/lcov.info')
.pipe(coveralls());
});

gulp.task('test', ['lint', 'style', 'unittest']);
gulp.task('default', ['test']);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"chai-spies": "^0.7.1",
"event-stream": "^3.3.0",
"gulp": "^3.8.7",
"gulp-coveralls": "^0.1.4",
"gulp-istanbul": "^0.10.2",
"gulp-jscs": "^3.0.2",
"gulp-jshint": "^1.8.4",
Expand Down

0 comments on commit 1ce0f7d

Please sign in to comment.