From 548552f70d33806182f76920e76d41cd34ccf176 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 22 Nov 2017 14:46:18 -0500 Subject: [PATCH] add build number to coverage zip filename --- gulpfile.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 3eac557f4c..51e4375253 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -138,8 +138,13 @@ gulp.task('webfonts', () => { gulp.task('ci', ['ci:coverage']); gulp.task('ci:coverage', (cb) => { + var build = ''; + if (process.env.APPVEYOR_BUILD_NUMBER && process.env.APPVEYOR_BUILD_NUMBER !== '') { + build = `-${process.env.APPVEYOR_BUILD_NUMBER}`; + } + return gulp.src(paths.coverage + '**/*') - .pipe(zip('coverage.zip')) + .pipe(zip(`coverage${build}.zip`)) .pipe(gulp.dest(paths.coverage)); });