mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 09:35:56 -05:00
Use circleCI build ID for saucelabs test names
This commit is contained in:
parent
b475a42bd9
commit
7ea74eb431
2 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,7 @@ require('chromedriver');
|
||||||
const headless = process.env.SMOKE_HEADLESS || false;
|
const headless = process.env.SMOKE_HEADLESS || false;
|
||||||
const remote = process.env.SMOKE_REMOTE || false;
|
const remote = process.env.SMOKE_REMOTE || false;
|
||||||
const ci = process.env.CI || false;
|
const ci = process.env.CI || false;
|
||||||
const buildID = process.env.TRAVIS_BUILD_NUMBER;
|
const buildID = process.env.CIRCLE_WORKFLOW_ID;
|
||||||
const {SAUCE_USERNAME, SAUCE_ACCESS_KEY} = process.env;
|
const {SAUCE_USERNAME, SAUCE_ACCESS_KEY} = process.env;
|
||||||
const {By, Key, until} = webdriver;
|
const {By, Key, until} = webdriver;
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ class SeleniumHelper {
|
||||||
if (remote === 'true'){
|
if (remote === 'true'){
|
||||||
let nameToUse;
|
let nameToUse;
|
||||||
if (ci === 'true'){
|
if (ci === 'true'){
|
||||||
nameToUse = 'travis ' + buildID + ' : ' + name;
|
nameToUse = 'circleCI ' + buildID + ' : ' + name;
|
||||||
} else {
|
} else {
|
||||||
nameToUse = name;
|
nameToUse = name;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ const chromedriverVersion = require('chromedriver').version;
|
||||||
const headless = process.env.SMOKE_HEADLESS || false;
|
const headless = process.env.SMOKE_HEADLESS || false;
|
||||||
const remote = process.env.SMOKE_REMOTE || false;
|
const remote = process.env.SMOKE_REMOTE || false;
|
||||||
const ci = process.env.CI || false;
|
const ci = process.env.CI || false;
|
||||||
const buildID = process.env.TRAVIS_BUILD_NUMBER;
|
const buildID = process.env.CIRCLE_WORKFLOW_ID;
|
||||||
const {SAUCE_USERNAME, SAUCE_ACCESS_KEY} = process.env;
|
const {SAUCE_USERNAME, SAUCE_ACCESS_KEY} = process.env;
|
||||||
const {By, Key, until} = webdriver;
|
const {By, Key, until} = webdriver;
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ class SeleniumHelper {
|
||||||
if (remote === 'true'){
|
if (remote === 'true'){
|
||||||
let nameToUse;
|
let nameToUse;
|
||||||
if (ci === 'true'){
|
if (ci === 'true'){
|
||||||
nameToUse = 'travis ' + buildID + ' : ' + name;
|
nameToUse = 'circleCI ' + buildID + ' : ' + name;
|
||||||
} else {
|
} else {
|
||||||
nameToUse = name;
|
nameToUse = name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue