Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build-configurations.py
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | def load(self, build_name): | ||||
self.build_directory = Path( | self.build_directory = Path( | ||||
self.project_root.joinpath( | self.project_root.joinpath( | ||||
'abc-ci-builds', | 'abc-ci-builds', | ||||
self.name)) | self.name)) | ||||
# Define the junit and logs directories | # Define the junit and logs directories | ||||
self.junit_reports_dir = self.build_directory.joinpath("test/junit") | self.junit_reports_dir = self.build_directory.joinpath("test/junit") | ||||
self.test_logs_dir = self.build_directory.joinpath("test/log") | self.test_logs_dir = self.build_directory.joinpath("test/log") | ||||
self.functional_test_logs = self.build_directory.joinpath( | |||||
"test/tmp/test_runner_*") | |||||
# We will provide the required environment variables | # We will provide the required environment variables | ||||
self.environment_variables = { | self.environment_variables = { | ||||
"BUILD_DIR": str(self.build_directory), | "BUILD_DIR": str(self.build_directory), | ||||
"CMAKE_PLATFORMS_DIR": self.project_root.joinpath("cmake", "platforms"), | "CMAKE_PLATFORMS_DIR": self.project_root.joinpath("cmake", "platforms"), | ||||
"THREADS": str(self.jobs), | "THREADS": str(self.jobs), | ||||
"TOPLEVEL": str(self.project_root), | "TOPLEVEL": str(self.project_root), | ||||
} | } | ||||
▲ Show 20 Lines • Show All 296 Lines • ▼ Show 20 Lines | async def wait_for_build(self, timeout, args=[]): | ||||
# Always add the build logs to the root of the artifacts | # Always add the build logs to the root of the artifacts | ||||
artifacts = { | artifacts = { | ||||
**self.configuration.get("artifacts", {}), | **self.configuration.get("artifacts", {}), | ||||
str(self.logs["full_log"].relative_to(build_directory)): "", | str(self.logs["full_log"].relative_to(build_directory)): "", | ||||
str(self.logs["clean_log"].relative_to(build_directory)): "", | str(self.logs["clean_log"].relative_to(build_directory)): "", | ||||
str(self.configuration.junit_reports_dir.relative_to(build_directory)): "", | str(self.configuration.junit_reports_dir.relative_to(build_directory)): "", | ||||
str(self.configuration.test_logs_dir.relative_to(build_directory)): "", | str(self.configuration.test_logs_dir.relative_to(build_directory)): "", | ||||
str(self.configuration.functional_test_logs.relative_to(build_directory)): "functional", | |||||
} | } | ||||
self.copy_artifacts(artifacts) | self.copy_artifacts(artifacts) | ||||
return (return_code, message) | return (return_code, message) | ||||
def run(self, args=[]): | def run(self, args=[]): | ||||
if self.artifact_dir.is_dir(): | if self.artifact_dir.is_dir(): | ||||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |