跳转到主要内容

Unreal Engine 4 持续集成辅助功能

项目描述

UE4 持续集成辅助功能

ue4-ci-helpers Python包基于ue4cliconan-ue4cli包,为Unreal项目和插件提供持续集成(CI)用例的基础设施。它旨在简化编写平台无关的构建脚本的过程,然后可以将其作为CI管道的一部分运行。

尽管该软件包在由ue4-full Docker镜像中运行效果最佳,该镜像由ue4-docker项目生成,但其核心功能将在ue4cli已正确配置的任何系统上工作。

要安装该软件包,请运行: pip install ue4-ci-helpers

一个简单的构建脚本,用于打包Unreal项目的夜间构建可能如下所示

#!/usr/bin/env python3
from ue4helpers import ProjectPackager, VersionHelpers
from os.path import abspath, dirname

# Create our project packager
packager = ProjectPackager(

	# The root directory for the project
	# (This example assumes this script is in a subdirectory)
	root = dirname(dirname(abspath(__file__))),

	# Use the date of the most recent git commit as our version string
	version = VersionHelpers.from_git_commit(),

	# The filename template for our generated .zip file
	archive = '{name}-Nightly-{version}-{platform}',

	# Don't strip debug symbols from the packaged build
	strip_debug = False,

	# Don't strip manifest files from the packaged build
	strip_manifests = False
)

# Clean any previous build artifacts
packager.clean()

# Package the project
packager.package()

# Compress the packaged distribution
# (The CI system can then tag the generated .zip file as a build artifact)
packager.archive()

查看PackagerBase类的构造函数的文档字符串,以查看支持的参数及其用途的完整列表。

法律

版权 © 2019,Adam Rehn。在MIT许可下发布,有关详细信息,请参阅文件LICENSE

本软件包的初始开发由Deepdrive, Inc资助。

项目详情


下载文件

下载您平台对应的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源代码分发

本版本没有提供源代码分发文件。请参阅生成分发存档的教程

构建分发

ue4_ci_helpers-0.0.11-py3-none-any.whl (19.4 kB 查看哈希值)

上传时间 Python 3

支持者