Skip to content

Commit

Permalink
Bump Cake.Tool from 1.3.0 to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RehanSaeed committed Nov 30, 2021
1 parent 319317e commit 1869559
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions build.cake
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
var target = Argument("Target", "Default");
var configuration =
HasArgument("Configuration") ? Argument<string>("Configuration") :
EnvironmentVariable("Configuration") is not null ? EnvironmentVariable("Configuration") :
"Release";
EnvironmentVariable("Configuration", "Release");

var artefactsDirectory = Directory("./Artefacts");

Expand All @@ -20,17 +19,17 @@ Task("Restore")
.IsDependentOn("Clean")
.Does(() =>
{
DotNetCoreRestore();
DotNetRestore();
});

Task("Build")
.Description("Builds the solution.")
.IsDependentOn("Restore")
.Does(() =>
{
DotNetCoreBuild(
DotNetBuild(
".",
new DotNetCoreBuildSettings()
new DotNetBuildSettings()
{
Configuration = configuration,
NoRestore = true,
Expand All @@ -41,9 +40,9 @@ Task("Test")
.Description("Runs unit tests and outputs test results to the artefacts directory.")
.DoesForEach(GetFiles("./Tests/**/*.csproj"), project =>
{
DotNetCoreTest(
DotNetTest(
project.ToString(),
new DotNetCoreTestSettings()
new DotNetTestSettings()
{
Blame = true,
Collectors = new string[] { "Code Coverage", "XPlat Code Coverage" },
Expand All @@ -63,13 +62,13 @@ Task("Pack")
.Description("Creates NuGet packages and outputs them to the artefacts directory.")
.Does(() =>
{
DotNetCorePack(
DotNetPack(
".",
new DotNetCorePackSettings()
new DotNetPackSettings()
{
Configuration = configuration,
IncludeSymbols = true,
MSBuildSettings = new DotNetCoreMSBuildSettings()
MSBuildSettings = new DotNetMSBuildSettings()
{
ContinuousIntegrationBuild = !BuildSystem.IsLocalBuild,
},
Expand Down
2 changes: 1 addition & 1 deletion dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"cake.tool": {
"version": "1.3.0",
"version": "2.0.0",
"commands": [
"dotnet-cake"
]
Expand Down

0 comments on commit 1869559

Please sign in to comment.