()
| 303 | regStatModules = /(module : )(\d+)/, |
| 304 | regStatComponents = /(component : )(\d+)/, |
| 305 | loop = () => { |
| 306 | if (i < len) { |
| 307 | clone(GIT_REPOSITORIES[i]).then(() => { |
| 308 | console.log(`Repository ${GIT_REPOSITORIES[i].name} cloned`); |
| 309 | generateGraph(GIT_REPOSITORIES[i]).then( |
| 310 | (stdout, stderr) => { |
| 311 | console.log(''); |
| 312 | console.log(` Graph ${GIT_REPOSITORIES[i].name} OK`); |
| 313 | if (stdout && stdout.match(reg)) { |
| 314 | printStat(stdout); |
| 315 | GIT_REPOSITORIES[i].filesLength = stdout.match(reg).length; |
| 316 | } |
| 317 | console.log(''); |
| 318 | i++; |
| 319 | loop(); |
| 320 | }, |
| 321 | (stdout, stderr) => { |
| 322 | console.log(''); |
| 323 | console.error(` Graph ${GIT_REPOSITORIES[i].name} KO`); |
| 324 | if (stdout && stdout.match(reg)) { |
| 325 | printStat(stdout); |
| 326 | GIT_REPOSITORIES[i].filesLength = stdout.match(reg).length; |
| 327 | } |
| 328 | console.log(''); |
| 329 | failedRepositories.push(GIT_REPOSITORIES[i].name); |
| 330 | i++; |
| 331 | loop(); |
| 332 | } |
| 333 | ); |
| 334 | }); |
| 335 | } else { |
| 336 | console.log('End processing projects'); |
| 337 | console.log(''); |
| 338 | |
| 339 | if (failedRepositories.length > 0) { |
| 340 | console.log('Failed repositories: ', failedRepositories); |
| 341 | console.log(''); |
| 342 | process.exit(1); |
| 343 | } else { |
| 344 | process.exit(0); |
| 345 | } |
| 346 | } |
| 347 | }; |
| 348 | |
| 349 | try { |
| 350 | process.chdir(TEST_FOLDER); |
no test coverage detected
searching dependent graphs…