Skip to content

Instantly share code, notes, and snippets.

@laurentkempe
Created March 30, 2016 18:39
Show Gist options
  • Save laurentkempe/858c4184ac79a39a87d0d7beb0e4ecb9 to your computer and use it in GitHub Desktop.
Save laurentkempe/858c4184ac79a39a87d0d7beb0e4ecb9 to your computer and use it in GitHub Desktop.
Task("Run-Unit-Tests")
.IsDependentOn("Build")
.Does(() =>
{
DotCoverCover(tool => {
tool.NUnit3(testDlls, new NUnit3Settings {
NoResults = true,
TeamCity = isOnTeamCity
});
},
dotCoverCoverResult,
new DotCoverCoverSettings()
.WithFilter("+:My.Domain")
);
});
Task("TeamCity-Import")
.WithCriteria(isOnTeamCity)
.IsDependentOn("Zip-Files")
.Does(() =>
{
TeamCity.ImportDotCoverCoverage(dotCoverCoverResult);
TeamCity.ImportData("ReSharperInspectCode", inspectCodeReport);
TeamCity.PublishArtifacts(buildArtifacts);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment