Skip to content

Commit 9d61348

Browse files
committed
ci: move ci check for BS
1 parent bc66fa1 commit 9d61348

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

test/e2e/nightwatch.browserstack.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,6 @@
44

55
const BS_USER = process.env.BS_USER
66
const BS_KEY = process.env.BS_KEY
7-
const isCI = process.env.CI
8-
9-
if (!BS_USER || !BS_KEY) {
10-
console.log(
11-
'Hey!\n',
12-
'You are missing credentials for Browserstack.\n',
13-
'If you are a contributor, this is normal, credentials are private. These tests must be run by a maintainer of vue-router',
14-
'If you are a maintainer, you forgot to `source keys.env`!'
15-
)
16-
// fail if testing locally
17-
process.exit(isCI ? 0 : 1)
18-
}
197

208
const nwConf = {
219
src_folders: ['test/e2e/specs'],

test/e2e/runner.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@ process.mainModule.filename = resolve(
8181
)
8282

8383
if (isLocal) {
84+
if (isLocal && (!process.env.BS_USER || !process.env.BS_KEY)) {
85+
console.log(
86+
'Hey!\n',
87+
'You are missing credentials for Browserstack.\n',
88+
'If you are a contributor, this is normal, credentials are private. These tests must be run by a maintainer of vue-router',
89+
'If you are a maintainer, you forgot to `source keys.env`!'
90+
)
91+
// fail if testing locally
92+
process.exit(process.env.isCI ? 0 : 1)
93+
}
94+
8495
let bsLocal
8596
const browserstack = require('browserstack-local')
8697
Nightwatch.bs_local = bsLocal = new browserstack.Local()

0 commit comments

Comments
 (0)