Skip to content

Commit 353d68b

Browse files
committed
Upload golds and filenames
1 parent 252db25 commit 353d68b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/gulp/tasks/screenshots.ts

+7
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ 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());
35+
2936
}
3037
});
3138

0 commit comments

Comments
 (0)