Skip to content

Bump cake to v4. Bump tool deps to latest. #281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .build/definitions.cake
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// ADDINS
#addin nuget:?package=Cake.Coveralls&version=1.1.0
#addin nuget:?package=Cake.FileHelpers&version=4.0.1
#addin nuget:?package=Cake.AppVeyor&version=5.0.1
#addin nuget:?package=Cake.FileHelpers&version=7.0.0
#addin nuget:?package=Cake.AppVeyor&version=6.0.0

// TOOLS
#tool nuget:?package=GitReleaseManager&version=0.12.1
#tool nuget:?package=GitVersion.CommandLine&version=5.7.0
#tool nuget:?package=GitReleaseManager&version=0.16.0
#tool nuget:?package=GitVersion.CommandLine&version=5.12.0
#tool nuget:?package=coveralls.net&version=4.0.1
#tool nuget:?package=OpenCover&version=4.7.1221
#tool nuget:?package=ReportGenerator&version=4.8.13
#tool nuget:?package=ReportGenerator&version=5.2.1


public class CodeCoverageSettings
Expand Down
14 changes: 7 additions & 7 deletions .build/tasks.cake
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Task("UpdateAppVeyorBuildNumber")
Task("Restore")
.Does<BuildInfo>(build =>
{
DotNetCoreRestore(build.Paths.SrcDir);
DotNetRestore(build.Paths.SrcDir);
});


Expand Down Expand Up @@ -83,7 +83,7 @@ Task("RunXunitTests")

// run open cover for debug build configuration
OpenCover(
tool => tool.DotNetCoreTool(
tool => tool.DotNetTool(
projectPath.ToString(),
"test",
buildProcessArgs("Debug", targetFw.Key)
Expand All @@ -95,7 +95,7 @@ Task("RunXunitTests")
{
var solutionFullPath = build.Paths.RootDir.Combine(build.Paths.SrcDir).Combine(build.Settings.SolutionName) + ".sln";
Information("Running Debug mode tests for {0} ({1})", projectFilename, targetFw.Key);
DotNetCoreTool(
DotNetTool(
solutionFullPath,
"test",
buildProcessArgs("Debug", targetFw.Key)
Expand All @@ -108,7 +108,7 @@ Task("RunXunitTests")
{
var solutionFullPath = build.Paths.RootDir.Combine(build.Paths.SrcDir).Combine(build.Settings.SolutionName) + ".sln";
Information("Running Release mode tests for {0} ({1})", projectFilename, targetFw.Key);
DotNetCoreTool(
DotNetTool(
solutionFullPath,
"test",
buildProcessArgs("Release", targetFw.Key)
Expand Down Expand Up @@ -183,13 +183,13 @@ Task("Build")
if (build.IsRelease) {
Information("Running {0} build to calculate code coverage", "Debug");
// need Debug build for code coverage
DotNetCoreBuild(build.Paths.SrcDir, new DotNetCoreBuildSettings {
DotNetBuild(build.Paths.SrcDir, new DotNetBuildSettings {
NoRestore = true,
Configuration = "Debug",
});
}
Information("Running {0} build", build.Config);
DotNetCoreBuild(build.Paths.SrcDir, new DotNetCoreBuildSettings {
DotNetBuild(build.Paths.SrcDir, new DotNetBuildSettings {
NoRestore = true,
Configuration = build.Config,
});
Expand All @@ -199,7 +199,7 @@ Task("Build")
Task("CreateNugetPackages")
.Does<BuildInfo>(build =>
{
DotNetCorePack(build.Paths.SrcDir, new DotNetCorePackSettings {
DotNetPack(build.Paths.SrcDir, new DotNetPackSettings {
Configuration = build.Config,
NoRestore = true,
NoBuild = true,
Expand Down
18 changes: 18 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 1,
"isRoot": true,
"tools": {
"cake.tool": {
"version": "4.0.0",
"commands": [
"dotnet-cake"
]
},
"coveralls.net": {
"version": "4.0.1",
"commands": [
"csmacnz.Coveralls"
]
}
}
}
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ environment:
secure: SakrMxbclSjNzFQxv8sA35OhulfvNm9VqHBEOgQrebPaF/Bv7AmZRsT8/YEfSQED

install:
- ps: dotnet tool install Cake.Tool --version 1.3.0 --global
- ps: dotnet tool install coveralls.net --version 4.0.1 --global
- ps: dotnet tool restore

build_script:
- ps: dotnet cake
Expand Down