Skip to content

Commit

Permalink
Add screenshots to e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
tinayuangao committed Jan 27, 2017
1 parent ed57b39 commit b4e6b64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/gulp/tasks/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ task('e2e', (done: (err?: string) => void) => {
'serve:e2eapp',
':test:protractor',
':serve:e2eapp:stop',
'screenshots',
(err: any) => done(err)
);
});
1 change: 1 addition & 0 deletions tools/gulp/tasks/screenshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit b4e6b64

Please sign in to comment.