Martin Fowler的文章:Continuous Integration 中文翻譯:持續(xù)集成
傳統(tǒng)工具:VisualStudio.Net,VisualSourceSafe,Rational ClearCase
自動(dòng)編譯工具:Ant
回歸測試工具:JUnit
代碼檢查工具:CheckStyle
持續(xù)集成工具:CruiseControl
CruiseControl監(jiān)控遠(yuǎn)程版本控制系統(tǒng)的變化
變化發(fā)生時(shí)CruiseControl調(diào)用編譯工具進(jìn)行編譯(Ant等)
編譯成功后調(diào)用JUnit進(jìn)行回歸測試
編譯成功后調(diào)用CheckStyle進(jìn)行代碼檢查
完畢后將編譯結(jié)果、測試結(jié)果、代碼檢查結(jié)果發(fā)送至開發(fā)人員、主管經(jīng)理,并發(fā)布至網(wǎng)站,甚至報(bào)警器
所有這一切都是按照編制好的腳本自動(dòng)進(jìn)行的
目前我們使用的是ClearCase,主控軟件為CruiseControl,其腳本文件為cccc.xml
配置遠(yuǎn)程版本控制系統(tǒng)
配置編譯工具
配置測試用例(在ant的配置文件中)
<target name="web.checkstyle"><mkdir dir="${target.temp}/checkstyle" /><mkdir dir="${target.web}/checkstyle" />- <taskdef resource="checkstyletask.properties">- <classpath><fileset dir="${support.tools}/checkstyle31" includes="**/*.jar" /></classpath></taskdef>- <copy file="${support.tools}/checkstyle31/custom.xml" overwrite="true" tofile="${target.temp}/checkstyle/custom.xml">- <filterset><filter token="source.java" value="${basedir}/${source.java}" /><filter token="target.checkstyle" value="${basedir}/${target.temp}/checkstyle" /></filterset></copy>- <checkstyle config="${target.temp}/checkstyle/custom.xml" failOnViolation="false"><fileset dir="${source.java}/main" includes="**/*.java" /><formatter type="plain" /><formatter type="xml" toFile="${target.temp}/checkstyle/checkstyle_errors.xml" /></checkstyle><style basedir="${target.temp}/checkstyle" destdir="${target.web}/checkstyle" includes="checkstyle_errors.xml" style="${support.tools}/checkstyle31/checkstyle-noframes.xsl" /></target>
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注