We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef655b0 commit b57ad11Copy full SHA for b57ad11
1 file changed
test/index.js
@@ -49,9 +49,9 @@ fs.removeAsync(config.screenshotRoot)
49
50
console.log('Currently at', branchInfo.branch, branchInfo.sha);
51
52
- if (branchInfo.branch !== 'master') {
53
- return gitInfo.getCommonAncestor(branchInfo.sha, 'master')
54
- .then(function(ancestor) {
+ return gitInfo.getCommonAncestor(branchInfo.sha, 'master')
+ .then(function(ancestor) {
+ if (ancestor !== branchInfo.sha) {
55
console.log('diffing against', ancestor);
56
return startBuild({
57
project: config.project,
@@ -62,8 +62,8 @@ fs.removeAsync(config.screenshotRoot)
62
.then(function(build) {
63
console.log('Build started', build.build);
64
});
65
- });
66
- }
+ }
+ });
67
})
68
.then(function() {
69
var client = webdriverio.remote(capabilities);
0 commit comments