Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build-configurations.py
Show First 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | async def process_stdout(self, stdout): | ||||
if not line: | if not line: | ||||
break | break | ||||
self.print_line_to_logs(line) | self.print_line_to_logs(line) | ||||
async def run_build(self, args=[]): | async def run_build(self, args=[]): | ||||
proc = await asyncio.create_subprocess_exec( | proc = await asyncio.create_subprocess_exec( | ||||
*([str(self.configuration.script_path)] + args), | *([str(self.configuration.script_path)] + args), | ||||
# Buffer limit is 64KB by default, but we need a larger buffer: | |||||
limit=1024 * 128, | |||||
stdout=asyncio.subprocess.PIPE, | stdout=asyncio.subprocess.PIPE, | ||||
stderr=asyncio.subprocess.STDOUT, | stderr=asyncio.subprocess.STDOUT, | ||||
cwd=self.build_directory, | cwd=self.build_directory, | ||||
env={ | env={ | ||||
**os.environ, | **os.environ, | ||||
**self.environment_variables, | **self.environment_variables, | ||||
**self.configuration.get("environment", {}) | **self.configuration.get("environment", {}) | ||||
}, | }, | ||||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |