@percy/env
Advanced tools
Comparing version 1.0.0-beta.14 to 1.0.0-beta.15
@@ -228,2 +228,5 @@ "use strict"; | ||
case 'heroku': | ||
return this.vars.HEROKU_PR_NUMBER; | ||
case 'gitlab': | ||
@@ -307,30 +310,5 @@ return this.vars.CI_MERGE_REQUEST_IID; | ||
let total = (() => { | ||
if (this.vars.PERCY_PARALLEL_TOTAL) { | ||
return this.vars.PERCY_PARALLEL_TOTAL; | ||
} | ||
switch (this.ci) { | ||
case 'travis': | ||
return this.vars.CI_NODE_TOTAL; | ||
case 'circle': | ||
return this.vars.CIRCLE_NODE_TOTAL; | ||
case 'codeship': | ||
return this.vars.CI_NODE_TOTAL; | ||
case 'semaphore': | ||
return this.vars.SEMAPHORE_THREAD_COUNT; | ||
case 'buildkite': | ||
return this.vars.BUILDKITE_PARALLEL_JOB_COUNT; | ||
case 'heroku': | ||
return this.vars.CI_NODE_TOTAL; | ||
case 'azure': | ||
// SYSTEM_TOTALJOBSINPHASE is set for parallel builds and non-parallel matrix builds, so | ||
// check build strategy is parallel by ensuring SYSTEM_PARALLELEXECUTIONTYPE == MultiMachine | ||
return this.vars.SYSTEM_PARALLELEXECUTIONTYPE === 'MultiMachine' && this.vars.SYSTEM_TOTALJOBSINPHASE; | ||
} | ||
try { | ||
return parseInt(this.vars.PERCY_PARALLEL_TOTAL); | ||
} catch {} | ||
})(); | ||
@@ -340,3 +318,3 @@ | ||
nonce: nonce || null, | ||
total: total ? parseInt(total) : null | ||
total: total || null | ||
}; | ||
@@ -343,0 +321,0 @@ } // git information for the current commit |
{ | ||
"name": "@percy/env", | ||
"version": "1.0.0-beta.14", | ||
"version": "1.0.0-beta.15", | ||
"license": "MIT", | ||
@@ -27,3 +27,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "be425adadd5ad0f8862e9449ec8d9380961b313d" | ||
"gitHead": "f11694fd14cb6918988534e15d32bc83a479707a" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16446
334