add build number to coverage zip filename

This commit is contained in:
Kyle Spearrin 2017-11-22 14:46:18 -05:00
parent 3f8ede39e6
commit 548552f70d
1 changed files with 6 additions and 1 deletions

View File

@ -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));
});