Sourceforge 每日构建
我目前维护着一个托管在 SourceForge 中的开源项目。 我的项目是使用 ANT 构建脚本用 Java 编写的。 (Ant 安装了一些扩展,但现在让我们忽略它。)
不幸的是,似乎没有简单的方法来自动生成每日构建。 有什么我可以使用的解决方法吗? 这就是我想要的:
- 它应该始终使用最新的 SVN 版本。
- 它应该构建它。
- 应该在网上发布。 如果失败,则应发布错误报告。
- 这些任务应该自动完成。
我怎样才能做到这一点? 如何模拟 SourceForge 中托管项目的自动每日构建?
I currently mantain an open-source project hosted in SourceForge.
My project is written in Java using ANT build scripts. (Ant has a few extensions installed, but let's ignore that for now.)
Unfortunately, there seems to be no easy way to automatically generate daily builds. Is there any workaround I can use. Here is what I want:
- It should always use the most recent SVN version.
- It should build it.
- It should publish it online. If it fails, it should publish the error report.
- These tasks should be done automatically.
How can I do this? How can I emulate automatic daily builds of a project hosted in SourceForge?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我了解您的问题,您需要的是持续集成工具。 它将为您汇集 SCM、启动构建并发布/存储错误报告,以防失败。
我最喜欢的是 Hudson:
https://hudson.dev.java.net/
As far as I understood your problem what you need is a Continuous Integration tool. It will pool the SCM for you, start a build and publish/store the error report in case of failure.
My favorite one is Hudson:
https://hudson.dev.java.net/
我认为 SF 有一个关于提交的电子邮件的钩子。
http://apps.sourceforge.net/trac/sitedocs/wiki/Subversion
http://apps.sourceforge.net/trac/sitedocs/ wiki/Subversion%20hook%20scripts#svnnotify
我想你可以触发它。
或者,使用 (svn up) 每小时(或您想要的任何时间段)检查最新版本的过程是否足以触发构建? (记录最后一个已知的构建版本,如果当前版本不同,则触发构建)
我对它们不熟悉,但我怀疑进行构建的第三方工具(CI/持续集成)有一种确定方法来自 SVN 的构建触发事件。
I think SF has a hook for emails on commits.
http://apps.sourceforge.net/trac/sitedocs/wiki/Subversion
http://apps.sourceforge.net/trac/sitedocs/wiki/Subversion%20hook%20scripts#svnnotify
I would imagine that you could trigger off of that.
Alternatively a process that checks the latest revision every hour (or whatever period you want) using (svn up) would be enough to trigger a build? (keep a record of the last known built revision and if the current revision if different, then trigger a build)
I am not familiar with them, but I suspect third party tools (CI/Continuous integration) to do builds have a way of determining a build trigger event from SVN.