File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ node_js:
3
3
- 10.15.1
4
4
env :
5
5
matrix :
6
- - VSCODE_VERSION="1.33.1" MAJOR_VERSION="1" VERSION="$MAJOR_VERSION.$TRAVIS_BUILD_NUMBER-vsc$VSCODE_VERSION"
6
+ - VSCODE_VERSION="1.33.1" MAJOR_VERSION="1" VERSION="$MAJOR_VERSION.$TRAVIS_BUILD_NUMBER-vsc$VSCODE_VERSION" CI_JOB_ID="$TRAVIS_BUILD_NUMBER.$TRAVIS_OS_NAME.$RANDOM"
7
7
matrix :
8
8
include :
9
9
- os : linux
10
10
dist : trusty
11
11
- os : osx
12
12
before_install :
13
+ - echo $CI_JOB_ID
13
14
- openssl aes-256-cbc -K $encrypted_31e0a178b4fd_key -iv $encrypted_31e0a178b4fd_iv
14
15
-in test/.coder-gcp-credentials.json.enc -out test/.coder-gcp-credentials.json -d
15
16
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
Original file line number Diff line number Diff line change @@ -155,11 +155,10 @@ export class TestPage {
155
155
const img = await this . rootPage . screenshot ( options ) ;
156
156
++ this . screenshotCount ;
157
157
158
- // If this is a Travis CI build, store the screenshots
159
- // for later.
160
- if ( process . env . TRAVIS_OS_NAME && process . env . TRAVIS_JOB_NUMBER ) {
158
+ // If this is a Travis CI build, store the screenshots.
159
+ if ( process . env . CI_JOB_ID ) {
161
160
const makePublic = true ;
162
- const bucketPath = `Travis-${ process . env . TRAVIS_JOB_NUMBER } /${ fileName } ` ;
161
+ const bucketPath = `Travis-${ process . env . CI_JOB_ID } /${ fileName } ` ;
163
162
let buf : Buffer = typeof img === "string" ? Buffer . from ( img as string ) : img ;
164
163
try {
165
164
const url = await bucket . write ( bucketPath , buf , makePublic ) ;
You can’t perform that action at this time.
0 commit comments