teamcity

How can I fail a TeamCity build if dotCover doesn't report a high enough result?

微笑、不失礼 提交于 2019-12-07 02:50:41
问题 I would like TeamCity to run my mSpec tests and report on the code covered by the tests. I would also like TeamCity to report that a build has failed if code coverage in certain namespaces doesn't meet a threshold (e.g. MyProduct.ImportantStuff must be 100% , but MyProduct.LegacyStuff must be [ 23% or whatever it currently is to ensure we don't add new stuff without covering tests ]. I initially looked at dotCover as it's integrated into TeamCity. I have since been looking at OpenCover as I

TeamCity with dotCover does not include all my assemblies in coverage report

只谈情不闲聊 提交于 2019-12-07 02:32:07
问题 I want to run NUnit on TeamCity and generate report with dotCover. But for some reasons I cannot get the coverage report for all my project assemblies. TeamCity config as below Teamcity: 6.5.3 NUnit: 2.5.10 .NET Runtime: Platform: x86 .NET Runtime: Version: v4.0 dotCover: bundled with TC not customized I have checked that all *.dll *.xml *.pdb files are there in the directory as expected as below (reference DLLs are not listed) MY.PROJECT.A.dll MY.PROJECT.A.pdb MY.PROJECT.A.xml MY.PROJECT.B

How do I set TeamCity to not produce build artifacts when the build fails?

时间秒杀一切 提交于 2019-12-07 01:47:00
问题 How do I set up TeamCity so that it does not publish build artifacts if the build fails because a unit test failed? I'm pretty sure it worked this way prior to version 6.0, but since upgrading to 6.0 it always produces artifacts even if a test fails. I have "Fail build if at least one test failed" checked. We had an outage with the e-mail notification and I didn't know we had a build problem because it continued producing artifacts. 回答1: Please watch/vote for this issue: http://youtrack

Teamcity build badge on github

徘徊边缘 提交于 2019-12-07 01:07:35
问题 I wanted to add a teamcity build badge on my github page.My repository is a private github repository. I started of by including the code below as the link said. <a href="http://teamcity/viewType.html?buildTypeId=myID&guest=1"> <img src="http://teamcity/app/rest/builds/buildType(id:myID)/statusIcon"/> </a> The problem I got stuck at then,was that the image was being blocked.I suspected that this was because my teamcity server was on http while my github repo used https. In my case it is not

Ignore file from delete during WebDeploy

若如初见. 提交于 2019-12-07 00:34:39
问题 I'm using TeamCity to build and deploy a collection of MVC Applications via msbuild and WebDeploy. In a step previous to my solution build/deploy, I copy an app_offline.htm to the deploy directory so that I can perform SQL updates and other web/solution management steps including the build. One of the setting in the WebDeploy is to delete files that aren't included in the project, or not needed to run the site. This deletes my app_offline.htm file each time. While I understand this is kind of

How do I set up TeamCity CI so that it unpacks Xamarin components?

限于喜欢 提交于 2019-12-06 23:01:18
问题 In Visual Studio everything works and a Components directory is created with the appropriate dlls. However, TeamCity is not able to retrieve the Android Support Library dlls because the trigger for the restore is a Xamarin VS plugin that runs when loading the solution. The equivalent of nuget package restore for Xamarin is xamarin-component. I have placed the xamarin-component.exe in my C:\Windows directory. To configure TeamCity, I prepended a Command Line build step with Command executable:

TeamCity NUnit build step failing although all tests pass

橙三吉。 提交于 2019-12-06 22:35:35
问题 I'm setting up TeamCity to run some NUnit tests, TeamCity reports that all the test pass but it reports the build as a fail with the error message 'New build status is : : NUnit error, {build.status.text}'. Digging in to the build log I can see that there's a failure to load the program under test, here's the reported error; [Step 2/2] NUnit error running tests in 'C:\TeamCity\buildAgent\work\f73bb9cce36ccd59\ProjectName.Web\ProjectName.BrowserTests\obj\Release\MyProject.BrowserTests.dll'

Wix heat.exe with project harvesting type

﹥>﹥吖頭↗ 提交于 2019-12-06 22:09:59
问题 I'm using the lastest version of Wix 3.5 and I'm trying to generate a fragment file using heat.exe. The command line is : "%WIX%\bin\heat.exe" project "MyProj.csproj" -pog Binaries -pog Content -suid -directoryid INSTALLLOCATION -ag -template fragment -out "Files.wxs" The prolem I'm having is that the assemblies my project is depending uppon are missing from the generated file. Is this the intended behaviour ? How can I add them ? Should I use the dir harvesting type ?! How to remove *.pdb or

MSBUILD : error MSB1008: Only one project can be specified in teamcity

陌路散爱 提交于 2019-12-06 21:09:13
问题 I am trying to run msbuild with teamcity. I have a batch file and I pass into it parameters and the build works. When I try to run through teamcity I get error below [13:24:46][MSBuild output] Start MSBuild... [13:24:46][MSBuild output] 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe' '"@C:\TeamCity\buildAgent\work\999585556854a516\Build\Default.msbuild.teamcity.msbuild.tcargs" C:\TeamCity\buildAgent\work\999585556854a516\Build\Default.msbuild.teamcity' [13:24:46][MSBuild output]

Cannot add part for the specified URI because it is already in the package

依然范特西╮ 提交于 2019-12-06 19:50:43
问题 I am using NUGET Pack in teamcity to build a package. But it is creating the following error. I am using nuget teamcity version 2.2.1. Step 2/2: Build Package (NuGet Pack) (14s) [12:10:40][Step 2/2] Cleaning Z:\hgbuilds\IT\Build\packages [12:10:40][Step 2/2] pack: Create NuGet package from UI\UI.Tour\UI.Tour.Web\UI.Tour.Web.csproj (14s) [12:10:40][pack] NuGet command: C:\BuildAgent\tools\NuGet.CommandLine.2.2.1.nupkg\tools\NuGet.exe pack Z:\hgbuilds\IT\UI\UI.Tour\UI.Tour.Web\Calrom.UI