文档介绍:持续集成Java手册育龙网   2009年06月08日  来源:互联网育龙网核心提示:持续集成手册一、概念MartinFowler的文章:ContinuousIntegration中文翻译:持续集成二、工具传统工具:,VisualSourc持续集成手册一、概念MartinFowler的文章:ContinuousIntegration中文翻译:持续集成二、工具传统工具:,VisualSourceSafe,RationalClearCase自动编译工具:Ant回归测试工具:JUnit代码检查工具:CheckStyle持续集成工具:CruiseControl三、步骤CruiseControl监控远程版本控制系统的变化变化发生时CruiseControl调用编译工具进行编译(Ant等)编译成功后调用JUnit进行回归测试编译成功后调用CheckStyle进行代码检查完毕后将编译结果、测试结果、代码检查结果发送至开发人员、主管经理,并发布至网站,甚至报警器所有这一切都是按照编制好的脚本自动进行的四、实施示例目前我们使用的是learase,主控软件为ruiseontrol,.xml配置远程版本控制系统30mainD:“cc_view“chelseafc““Porttrue配置编译工具30C:“Java“JBuilder2005hirdparty“ant“bin“:“cc_view“chelseafc““Port“clearcase-(在ant的中)testinitRununittests$$-yesyes-$plainfalsexml-$$/-******@ContinuousIntegration:******@chelseachelsea@其中CruiseControl暂时没有提供代码检查工具的支持,建议使用Ant来调用CheckStyle,示例如下(没有真正运行过):$/checkstyle$/checkstyle--$/checkstyle31/.jar-$/checkstyle31/$/checkstyle/-$/$$/$/checkstyle-$/checkstyle/$/main/.javaplainxml$/checkstyle/