ccnet+ncover+fxcop+web deploy+mstest

<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<project>
<name>Hello</name>
<webURL>http://localhost/ccnet/server/local/project/Hello/ViewProjectReport.aspx</webURL>
<triggers>

<intervalTrigger seconds="3600"/>
<scheduleTrigger time="10:30" buildCondition="ForceBuild" name="Scheduled">
<weekDays>
<weekDay>Friday</weekDay>

<weekDay>Sunday</weekDay>

</weekDays>
</scheduleTrigger>
</triggers>
<labeller type="dateLabeller"/>
<modificationDelaySeconds>2</modificationDelaySeconds>
<artifactDirectory>C:\WebSite\Hello\Log</artifactDirectory>
<sourcecontrol type="svn">
<trunkUrl>http://localhost:81/svn/Hello</trunkUrl>
<executable>C:/Program Files (x86)/VisualSVN Server/bin/svn.exe</executable>
<workingDirectory>C:\WebSite\Hello\WorkingDirectory</workingDirectory>
<username>xxx</username>
<password>xxx</password>
</sourcecontrol>

<tasks>

<conditional>
<conditions>
<buildCondition>
<value>ForceBuild</value>
</buildCondition>
</conditions>
<tasks>

<msbuild>
<executable>C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable>
<workingDirectory>C:\WebSite\Hello\WorkingDirectory</workingDirectory>
<projectFile>Hello.sln</projectFile>
<buildArgs></buildArgs>
<logger>C:\Program Files (x86)\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
<targets>Build</targets>
</msbuild>

<exec executable="C:\WebSite\Hello\package.bat"/>

<exec executable="C:\WebSite\Hello\deploy.bat"/>

<exec executable="C:\WebSite\Hello\WorkingDirectory\Fxcop.bat" />

<exec executable="C:\WebSite\Hello\delete.bat"/>
<exec executable="C:\WebSite\Hello\WorkingDirectory\test.bat" />
<exec executable="C:\WebSite\Hello\WorkingDirectory\localhost.bat" />
</tasks>
<elseTasks>

<msbuild>
<executable>C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable>
<workingDirectory>C:\Users\xmwei\Desktop\Hello</workingDirectory>
<projectFile>Hello.sln</projectFile>
<buildArgs></buildArgs>
<logger>C:\Program Files (x86)\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
<targets>Build</targets>
</msbuild>
<exec executable="C:\WebSite\Hello\Fxcop.bat"/>

<exec executable="C:\WebSite\Hello\delete.bat"/>
<exec executable="C:\WebSite\Hello\ncovermstest.bat"/>
<exec executable="C:\WebSite\Hello\ncoverexplorer.bat"/>

</elseTasks>

</conditional>

</tasks>
<publishers>
<buildpublisher>
<sourceDir>C:\WebSite\Hello\WorkingDirectory</sourceDir>
<publishDir>C:\WebSite\Hello\HistoryVersion</publishDir>
</buildpublisher>
<merge>
<files>
<file>C:\WebSite\Hello\Log\DailyBuild.FxCop.xml</file>
<file>C:\WebSite\Hello\Log\coverage.xml</file>
<file>C:\WebSite\Hello\Log\NCoverExplorer.Xml</file>
<file>C:\WebSite\Hello\Log\testResults.trx</file>
</files>
</merge>
<xmllogger logDir="C:\WebSite\Hello\Log\buildlogs"/>
<modificationHistory onlyLogWhenChangesFound="true"/>
<statistics/>
</publishers>
</project>
</cruisecontrol>

delete.bat

cmd.exe /c if exist C:\WebSite\Hello\Log\testResults.trx del /Q C:\WebSite\Hello\Log\testResults.trx

Fxcop.bat

FxCopCmd /project:C:\WebSite\Hello\WorkingDirectory\fxcop.FxCop /out:C:\WebSite\Hello\log\DailyBuild.FxCop.xml

ncovermstest.bat

ncover.console.exe "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe" /testcontainer:"C:\WebSite\Hello\WorkingDirectory\Test\TestProject1\bin\Debug\TestProject1.dll" /resultsfile:C:\WebSite\Hello\Log\testResults.trx //p "Hello" //x C:\WebSite\Hello\Log\coverage.xml

ncoverexplorer.bat

NCoverExplorer.Console.exe C:\WebSite\Hello\Log\coverage.xml /xml:C:\WebSite\Hello\Log\NCoverExplorer.Xml /r:ModuleClassSummary

package.bat

msbuild "C:\WebSite\Hello\WorkingDirectory\Hello\Hello.csproj" /t:Package

deploy.bat

msdeploy -source:contentpath="C:\WebSite\Hello\WorkingDirectory\Hello\obj\Debug\Package\PackageTmp\" -dest:contentpath="c:\deploy",includeAcls=false,computername="https://10.2.3.122:8172/msdeploy.axd?Site=Test",authType=Basic,userName=administrator,password=pass@word1 -allowUntrusted -verb:sync

localhost.bat

msdeploy -source:contentpath="C:\WebSite\Hello\WorkingDirectory\Hello\obj\Debug\Package\PackageTmp\" -dest:contentpath="D:\deploy" -verb:sync

msdeploy -verb:sync -source:contentpath="C:\WebSite\Hello\WorkingDirectory\Hello\obj\Debug\Package\PackageTmp\" -dest:contentpath="C:\wxm\deploy" -skip:absolutePath=Web.config

 

 

 

 

 

转载于:https://www.cnblogs.com/GreenGrass/archive/2012/11/13/2767624.html

1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看REAdMe.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看REAdMe.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看READme.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值