有什么CI-Systems的Delphi像Hudson for Java?
Hudson有任何Delphi集成吗?
Hudson有任何Delphi集成吗?
解决方法
我们使用Hudson :),它工作正常与Delphi。
这里是我的一个项目的完整设置:
<?xml version='1.0' encoding='UTF-8'?> <project> <actions/> <description></description> <keepDependencies>false</keepDependencies> <properties/> <scm class="hudson.scm.CVSSCM"> <cvsroot>:sspi:cvsonly:foo@bar:/baz</cvsroot> <module>SIP</module> <canUseUpdate>false</canUseUpdate> <flatten>true</flatten> <isTag>false</isTag> <excludedRegions></excludedRegions> </scm> <canRoam>true</canRoam> <disabled>false</disabled> <triggers class="vector"/> <builders> <hudson.tasks.BatchFile> <command>"C:\Program Files\Nant\bin\nant" -buildfile:etc\sip.build build-d7 test</command> </hudson.tasks.BatchFile> </builders> <publishers> <hudson.tasks.BuildTrigger> <childProjects>quux,foozle,wibble</childProjects> <threshold> <name>SUCCESS</name> <ordinal>0</ordinal> <color>BLUE</color> </threshold> </hudson.tasks.BuildTrigger> </publishers> <buildWrappers/> </project>
sip.build的delphi-7目标构建项目的测试套件(DUnit的TextTestRunner),所以作业的输出只是失败/错误测试的计数感谢:
var R: TTestResult; begin R := TextTestRunner.RunRegisteredTests; ExitCode := R.ErrorCount + R.FailureCount; end;