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..a822af2f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5437,9 +5437,9 @@ path-type@^1.0.0: pify "^2.0.0" pinkie-promise "^2.0.0" -percy-client@^2.10.0: - version "2.10.0" - resolved "https://registry.yarnpkg.com/percy-client/-/percy-client-2.10.0.tgz#9e70e5c51dc32721ea72fd35efe4b18657e897a6" +"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"