Skip to content

Commit

Permalink
Add pre-release version of percy-js for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
maprules1000 committed Aug 31, 2018
1 parent a20f030 commit 9becacb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
11 changes: 4 additions & 7 deletions index.js
Expand Up @@ -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,
Expand All @@ -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; }
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Expand Up @@ -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"
Expand Down

0 comments on commit 9becacb

Please sign in to comment.