Skip to content

Commit

Permalink
separate gulp tasks to run all tests and coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
outsideris committed Nov 27, 2015
1 parent 5e8758f commit 4ac87a1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var gulp = require('gulp'),
header = require("gulp-header"),
Server = require('karma').Server,
coveralls = require('gulp-coveralls'),
del = require('del'),
nugetpack = require('gulp-nuget-pack'),
pkg = require('./package.json');

Expand Down Expand Up @@ -56,7 +57,13 @@ gulp.task('test:angular13', function() {
gulp.start('karma');
});

gulp.task('travis', function(done) {
gulp.task('clean:coverage', function () {
return del([
'coverage'
]);
});

gulp.task('coveralls', ['clean:coverage'], function(done) {
var configFile = '/test/karma.conf.js';

var coveralls = function() {
Expand All @@ -76,6 +83,9 @@ gulp.task('travis', function(done) {
}, coveralls).start();
});

gulp.task('travis', ['test', 'test:angular12', 'test:angular13'], function() {
});

gulp.task('nuget-pack', function(done) {
nugetpack({
id: "Angular.Summernote",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
}
],
"devDependencies": {
"del": "^2.1.0",
"gulp": "^3.9.0",
"gulp-coveralls": "^0.1.4",
"gulp-header": "^1.7.1",
Expand Down

0 comments on commit 4ac87a1

Please sign in to comment.