From 3f8ede39e67a93f9e6c7b5f9df4633bc7f36d14e Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 22 Nov 2017 14:42:44 -0500 Subject: [PATCH] ci tasks, code coverage zipping --- gulpfile.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 192db25119..3eac557f4c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -14,6 +14,7 @@ const gulp = require('gulp'), const paths = { build: './build/', dist: './dist/', + coverage: './coverage/', libDir: './src/lib/', npmDir: './node_modules/', popupDir: './src/popup/', @@ -134,6 +135,14 @@ gulp.task('webfonts', () => { .pipe(gulp.dest(paths.cssDir)); }); +gulp.task('ci', ['ci:coverage']); + +gulp.task('ci:coverage', (cb) => { + return gulp.src(paths.coverage + '**/*') + .pipe(zip('coverage.zip')) + .pipe(gulp.dest(paths.coverage)); +}); + // LEGACY CODE! gulp.task('lint', () => {