Cake build: Code tidy (#2121)

This commit is contained in:
flightlevel 2017-11-12 11:01:05 +11:00 committed by GitHub
parent 84571f05fc
commit 9507369293
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 34 additions and 29 deletions

View File

@ -41,7 +41,7 @@ Task("Clean")
CleanDirectories("./" + artifactsDirName);
CleanDirectories("./" + testResultsDirName);
Information(@"Clean completed");
Information("Clean completed");
});
Task("Restore-NuGet-Packages")
@ -95,6 +95,8 @@ Task("Copy-Files-Full-Framework")
CopyDirectory(windowsBuildFullFramework, monoBuildFullFramework);
DeleteFiles(monoOutput + "/JackettService.*");
DeleteFiles(monoOutput + "/JackettTray.*");
Information("Full framework file copy completed");
});
Task("Check-Packaging-Platform")
@ -104,7 +106,7 @@ Task("Check-Packaging-Platform")
if (IsRunningOnWindows())
{
CreateDirectory("./" + artifactsDirName);
Information(@"Platform is Windows");
Information("Platform is Windows");
}
else
{
@ -150,7 +152,7 @@ Task("Package-Full-Framework")
.IsDependentOn("Package-Files-Full-Framework-Mono")
.Does(() =>
{
Information(@"Full Framwork Packaging Completed");
Information("Full Framwork Packaging Completed");
});
Task("Appveyor-Push-Artifacts")
@ -170,7 +172,6 @@ Task("Appveyor-Push-Artifacts")
}
});
private void RunCygwinCommand(string utility, string utilityArguments)
{
var cygwinDir = @"C:\cygwin\bin\";
@ -221,7 +222,11 @@ private string RelativeWinPathToCygPath(string relativePath)
//////////////////////////////////////////////////////////////////////
Task("Default")
.IsDependentOn("Appveyor-Push-Artifacts");
.IsDependentOn("Appveyor-Push-Artifacts")
.Does(() =>
{
Information("Default Task Completed");
});
//////////////////////////////////////////////////////////////////////
// EXECUTION