加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

Delphi的连续集成系统

发布时间:2020-12-15 05:21:44 所属栏目:大数据 来源:网络整理
导读:有什么CI-Systems的Delphi像Hudson for Java? Hudson有任何Delphi集成吗? 解决方法 我们使用Hudson :),它工作正常与Delphi。 这里是我的一个项目的完整设置: ?xml version='1.0' encoding='UTF-8'?project actions/ description/description keepDepende
有什么CI-Systems的Delphi像Hudson for Java?
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>&quot;C:Program FilesNantbinnant&quot; -buildfile:etcsip.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;

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读