Skip to content

Commit 4769792

Browse files
author
Forest Hoffman
committed
Make screenshots public by default
1 parent 20aec40 commit 4769792

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,12 @@ export class TestPage {
158158
// If this is a Travis CI build, store the screenshots
159159
// for later.
160160
if (process.env.TRAVIS_OS_NAME && process.env.TRAVIS_JOB_NUMBER) {
161+
const makePublic = true;
161162
const bucketPath = `Travis-${process.env.TRAVIS_JOB_NUMBER}/${fileName}`;
162163
let buf: Buffer = typeof img === "string" ? Buffer.from(img as string) : img;
163164
try {
164-
const url = await bucket.write(bucketPath, buf);
165+
const url = await bucket.write(bucketPath, buf, makePublic);
165166
logger.info("stored screenshot",
166-
field("localPath", options.path),
167167
field("bucketPath", bucketPath),
168168
field("url", url),
169169
);

0 commit comments

Comments
 (0)