1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-01 04:37:40 +02:00

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

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