From e8e84e865e74a7be4ecb7ad33de6a1553114c1ed Mon Sep 17 00:00:00 2001 From: Yuan Gao Date: Mon, 23 Jan 2017 15:37:04 -0800 Subject: [PATCH] Add screenshots to e2e test --- tools/gulp/tasks/e2e.ts | 1 + tools/gulp/tasks/screenshots.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/gulp/tasks/e2e.ts b/tools/gulp/tasks/e2e.ts index b2a2f7af4dd7..46ee68e8415e 100644 --- a/tools/gulp/tasks/e2e.ts +++ b/tools/gulp/tasks/e2e.ts @@ -64,6 +64,7 @@ task('e2e', (done: (err?: string) => void) => { 'serve:e2eapp', ':test:protractor', ':serve:e2eapp:stop', + 'screenshots', (err: any) => done(err) ); }); diff --git a/tools/gulp/tasks/screenshots.ts b/tools/gulp/tasks/screenshots.ts index 65adb0da02ef..7c602811a907 100644 --- a/tools/gulp/tasks/screenshots.ts +++ b/tools/gulp/tasks/screenshots.ts @@ -22,6 +22,7 @@ task('screenshots', () => { .then((results: boolean) => { return database.ref(FIREBASE_REPORT).child(`${prNumber}/result`).set(results); }) + .then(() => database.ref(FIREBASE_REPORT).child(`${prNumber}/commit`).set(process.env['TRAVIS_COMMIT'])) .then(() => setFilenameList(database, prNumber)) .then(() => uploadScreenshots(prNumber, 'diff')) .then(() => uploadScreenshots(prNumber, 'test'))