Skip to content

Commit 398d5e7

Browse files
committed
Upload golds and filenames
1 parent 252db25 commit 398d5e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/gulp/tasks/screenshots.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ task('screenshots', () => {
2626
.then(() => updateTravis(database, prNumber))
2727
.then(() => setScreenFilenames(database, prNumber))
2828
.then(() => database.goOffline(), () => database.goOffline());
29+
} else if (process.env['TRAVIS']) {
30+
// Only update golds and filenames for build
31+
let database = openFirebaseScreenshotsDatabase();
32+
uploadScreenshots(null, null)
33+
.then(() => setScreenFilenames(database, null))
34+
.then(() => database.goOffline(), () => database.goOffline());
2935
}
3036
});
3137

0 commit comments

Comments
 (0)