()
| 52 | } |
| 53 | |
| 54 | function hasAnyChanges() { |
| 55 | console.log("Checking if any files have changed (git status --porcelain)"); |
| 56 | let output = cp.execSync('git status --porcelain'); |
| 57 | let lines = output.toString().split("\n"); |
| 58 | let anyChanges = false; |
| 59 | lines.forEach(line => { |
| 60 | if (line != '') { |
| 61 | console.log("Change detected: " + line); |
| 62 | anyChanges = true; |
| 63 | } |
| 64 | }); |
| 65 | |
| 66 | return anyChanges; |
| 67 | } |
| 68 | |
| 69 | // When invoked on build server, we should already be in a repo freshly synced to the mergeTo branch |
| 70 |
no test coverage detected