欢迎来到天天文库
浏览记录
ID:34545923
大小:1.78 MB
页数:6页
时间:2019-03-07
《Continuous Integration-Servers and Tools.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、#87CONTENTSINCLUDE:nAboutContinuousIntegrationnConfiguringtheMachineContinuousIntegration:nInstallingtheCIServernConfiguringaHudsonJobnRunningTestsServersandToolsnToolsandmore...ByPaulM.DuvallAntipatterns:RequiringdevelopertodefineandconfigureABOUTCONTINUOUSINTEGRATIONenvironmentvariabl
2、es.Requiringdevelopertoinstallnumeroustoolsinorderforthebuild/deploymenttowork.Visitrefcardz.comWhenimplementingautomatedContinuousIntegration(CI),ConfiguretheOperatingSystemandServersyouhaveanumberofCIserversandtoolsfromwhichtoConfiguringEnvironmentVariableschoose.Here,oneserver(Hudson
3、)andmanytools/platformsDownloadtheJavadevelopmentkitzipdistributiontoa(e.g.,Linux,Java,Ant,Subversion,MySQLandSonar)aretemporarydirectoryonyourworkstationandextractthefiletocoveredandlinkedtoCIPatternsandAntipatterns(seeadirectorysuchas/usr.CIPatternsandAntipatternsRefcard#84).Thegoalis
4、tohttp://www.java.com/en/download/manual.jspdemonstratehowyoucanuseaCIservertocreateworkingsoftwarewitheverychange.Furthermore,teammembersneedDownloadAntbuildtoolzipdistributiontoatemporarytobenotifiedwhensomethinggoeswrong,avitalelementdirectoryonyourmachineandextractthefiletoadirector
5、ytoCI.ItisimportanttonotethatwhilethisRefcardusesthesuchasusr/local.JavaplatformandLinuxforexamplepurposes,serversandhttp://ant.apache.org/bindownload.cqitoolsdoexistthatsupportotherdevelopmentplatforms(e.g.,CruiseControl.NET,cruisecontrol.rb,MSBuildandsoon).Createoropenyouruserprofileb
6、yusingthevieditorasshownbelowtoopen/createa.bash_profilefile.RelevantPatternsThepatternsbelowarefromtheCIpatternsandanti-patternsvi.bash_profileRefcard(#84)thatarerelevanttociserversandtoolsandarecoveredinthisRefcard.Addenvironmentinformationtothe.bash_profilefile.Examplesareshownbelow.
7、PatternDescriptionANT_HOME=/usr/local/ant-1.7.0RepositoryCommitallfilestoaversion-controlrepositoryJAVA_HOME=/usr/jdk1.5.0_10/HUDSON_HOME=$HOME/hudson_dataAutomatedBuildAutomateallactivitiestobuildsoftwarefromsourceexportANT_HOMEJAVA_HOMEHUDSON_HOMEwithoutmanualconfigurationexp
此文档下载收益归作者所有