有没有人在 Perl 中使用 Hudson(或其他类似的构建系统)取得过成功?
有没有人在 Perl 中使用 Hudson(或其他类似的构建系统)取得过成功?
Has anyone had any success using Hudson (or another similar build system) with Perl?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
对于非 Java 构建脚本,我通常使用 Hudson 的自定义构建脚本模板。 也就是说,我可以在 Hudson 中指定一个 shell 脚本。 从那里,我可以运行 make、configure 等 GNU 工具,并且我通常会在脚本中嵌入一些 echo,或者将一些输出重定向到自定义文件,然后将其打包在一个特殊的文件夹中,并标记为构建工件。
例如,
对于初学者来说,我可能会这样做。
然后我可以将日志/**包装为构建工件。
For non-Java build scripts, I usually use Hudson's custom build script template. That is, I can specify a shell script in Hudson. From there, I can run GNU tools like make, configure, and I usually embed some echo's into the script, or redirect some output to a custom file, which I then package up in a special folder, and mark as a build artifact.
For example, I might,
for starters.
Then I could wrap up logs/** as build artifacts.
我已经将 Perl 集成到了几个构建系统中,但没有集成到 Hudson 中。 为什么要使用哈德森? 也许你的问题还有另一个答案。
I've integrated Perl into several build systems, although not Hudson. Why do you want to use Hudson? Maybe there's another answer to your problem.
使用 Hudson 和 Java 一年左右,使用 Hudson 和 Perl 几个月,我更喜欢前者,并让后者表现得像前者。
Hudson 以 Java 为中心,开箱即用,与 Maven 和 Junit 配合使用效果最佳。 但是,它支持 shell 脚本,因此您可以轻松执行通常的
perl Makefile.PL && 操作。 制作&& 进行测试。
不过,如果您使用一种(新的)Perl 测试结果格式化程序,您可以获得更好的结果
:
will integrate the Perl test results into Hudson, allowing Hudson to graph and report as if you were running a Java project.
您可以轻松地在
prove
行周围调用启动/停止 Apache 测试服务器 - 请参阅 CPAN for Apache Test。Having used Hudson and Java for a year or so, and Hudson and Perl for a few months, my preferance is for the former, and to make the latter behave liek the former.
Hudson is Java-centric, and works best out-of-the-box with Maven and Junit. However, it supports shell scripts, so you can easily do the usual
perl Makefile.PL && make && make test
.You can get much nicer results, though, if you use oen of the (newish) Perl test-result formatters:
The use of
will integrate the Perl test results into Hudson, allowing Hudson to graph and report as if you were running a Java project.
You can easily surround the
prove
line with calls to start/stop an Apache test server - see CPAN for Apache Test.是的,有人在另一个类似的构建系统上取得了成功。
Yes, someone has had success with another similar build system.