project.checkout_commit(args.commit) if len(project.pom.poms) == 0: os._exit(os.EX_OK) output = { "commit": project.get_commit(), "root": os.path.dirname(project.pom.poms[0]["path"]).replace(project.path, ""), "test_results": [], "start": time.time(), "env": getEnv() } if args.coverage: project.inject_jacoco_plugin() log_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "output.log") project.compile(clean=False, stdout=log_path, timeout="10m") output['compile-log'] = "" if os.path.exists(log_path): with open(log_path, 'r') as fd: output['compile-log'] = fd.read() output['test-logs'] = [] for i in range(0, args.iteration): #project.test(clean=False) project.test(clean=False, stdout=log_path, timeout=args.timeout) if os.path.exists(log_path): with open(log_path, 'r') as fd: output['test-logs'].append(fd.read()) if args.output is not None: