diff --git a/index.js b/index.js index 44334c08..bc1e6fdf 100644 --- a/index.js +++ b/index.js @@ -157,7 +157,8 @@ module.exports = { isPercyEnabled = false; } - if (token && repo && isPercyEnabled) { + if (token && isPercyEnabled) { + console.warn('[percy] Percy is running.'); percyClient = new PercyClient({ token: token, apiUrl: apiUrl, @@ -166,15 +167,11 @@ module.exports = { }); } else { isPercyEnabled = false; - - if (environment.ci && !token) { + console.warn('[percy] Percy is not running.'); + if (!token) { console.warn( '[percy][WARNING] Percy is disabled, no PERCY_TOKEN environment variable found.') } - if (environment.ci && !repo) { - console.warn( - '[percy][WARNING] Percy is disabled, no PERCY_PROJECT environment variable found.') - } } if (!isPercyEnabled) { return; } diff --git a/package.json b/package.json index 723c1c2f..18affd07 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "body-parser": "^1.15.0", "ember-cli-babel": "^6.10.0", "es6-promise-pool": "^2.4.1", - "percy-client": "^2.10.0", + "percy-client": "https://github.com/percy/percy-js.git#map/update-build-creation-endpoint", "walk": "^2.3.9" }, "ember-addon": { diff --git a/yarn.lock b/yarn.lock index 072bb6fb..bf0b5244 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5453,6 +5453,22 @@ percy-client@^2.10.0: optionalDependencies: lint-staged "^7.0.4" +"percy-client@https://github.com/percy/percy-js.git#map/update-build-creation-endpoint": + version "2.11.0" + resolved "https://github.com/percy/percy-js.git#aafc22504ccda932f763f7f9def39c9a64222c29" + dependencies: + base64-js "^1.2.3" + bluebird "^3.5.1" + bluebird-retry "^0.11.0" + es6-promise-pool "^2.5.0" + jssha "^2.1.0" + regenerator-runtime "^0.11.1" + request "^2.85.0" + request-promise "^4.2.2" + walk "^2.3.14" + optionalDependencies: + lint-staged "^7.0.4" + performance-now@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"