(build) Update to Cake 0.35.0, update dependencies and improve dotnet-format execution. (#2039)

* (build) Update to Cake 0.35.0
* Cake.Frosting 0.35.0
* Cake.Coverlet 2.3.4
* Cake.Codecov 0.7.0
* Codecov 1.7.2
* Make dotnet-format execution more robust (fails if not installed globally)

* Fix codecov.exe path
This commit is contained in:
Mattias Karlsson
2019-10-30 21:08:10 +01:00
committed by Brendan Forster
parent 5eb9f06b24
commit f61654a74b
3 changed files with 12 additions and 7 deletions

View File

@@ -1,11 +1,16 @@
using Cake.Common.Tools.DotNetCore;
using System;
using Cake.Common;
using Cake.Frosting;
public sealed class FormatCode : FrostingTask<Context>
{
public override void Run(Context context)
{
context.DotNetCoreTool("format");
int result = context.StartProcess(context.DotNetFormatToolPath);
if (result != 0)
{
throw new Exception($"Failed to execute {context.DotNetFormatToolPath} ({result})");
}
}
public override bool ShouldRun(Context context)