Skip to content
This repository was archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
cake refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
osoykan committed Jul 23, 2017
1 parent 98a57a7 commit b170cef
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ Task("Build")
.IsDependentOn("Restore-NuGet-Packages")
.Does(() =>
{
DotNetBuild(solution, c=> c.Configuration = configuration);
MSBuild(solution, new MSBuildSettings(){Configuration = configuration}
.WithProperty("SourceLinkCreate","true"));
});

Task("Run-Unit-Tests")
Expand All @@ -98,23 +99,9 @@ Task("Run-Unit-Tests")
XUnit2(testFile.ToString(), new XUnit2Settings { });
}
});

Task("Coverage")
.IsDependentOn("Run-Unit-Tests")
.Does(()=>
{
Information("Coverage...");
});

Task("Analyse")
.IsDependentOn("Coverage")
.Does(()=>
{
Information("Sonar running!...");
});


Task("Pack")
.IsDependentOn("Analyse")
.IsDependentOn("Run-Unit-Tests")
.Does(() =>
{
var nupkgFiles = GetFiles(nupkgRegex);
Expand Down

0 comments on commit b170cef

Please sign in to comment.