Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build-configurations.py
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | git_root = PurePath( | ||||
capture_output=True, | capture_output=True, | ||||
check=True, | check=True, | ||||
encoding='utf-8', | encoding='utf-8', | ||||
text=True, | text=True, | ||||
).stdout.strip() | ).stdout.strip() | ||||
) | ) | ||||
# Create the build directory as needed | # Create the build directory as needed | ||||
build_directory = Path(git_root.joinpath(args.build)) | build_directory = Path(git_root.joinpath('abc-ci-builds', args.build)) | ||||
build_directory.mkdir(exist_ok=True) | build_directory.mkdir(exist_ok=True, parents=True) | ||||
# We will provide the required environment variables | # We will provide the required environment variables | ||||
environment_variables = { | environment_variables = { | ||||
"BUILD_DIR": str(build_directory), | "BUILD_DIR": str(build_directory), | ||||
"CMAKE_PLATFORMS_DIR": git_root.joinpath("cmake", "platforms"), | "CMAKE_PLATFORMS_DIR": git_root.joinpath("cmake", "platforms"), | ||||
"THREADS": str(os.cpu_count() or 1), | "THREADS": str(os.cpu_count() or 1), | ||||
"TOPLEVEL": str(git_root), | "TOPLEVEL": str(git_root), | ||||
} | } | ||||
Show All 33 Lines |