mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
add build number to coverage zip filename
This commit is contained in:
@@ -138,8 +138,13 @@ gulp.task('webfonts', () => {
|
|||||||
gulp.task('ci', ['ci:coverage']);
|
gulp.task('ci', ['ci:coverage']);
|
||||||
|
|
||||||
gulp.task('ci:coverage', (cb) => {
|
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 + '**/*')
|
return gulp.src(paths.coverage + '**/*')
|
||||||
.pipe(zip('coverage.zip'))
|
.pipe(zip(`coverage${build}.zip`))
|
||||||
.pipe(gulp.dest(paths.coverage));
|
.pipe(gulp.dest(paths.coverage));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user