Skip to content
Merged
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
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,6 @@ tests/integration/repos/
Source/Cake.Recipe/Content/version.cake
includes.cake

# Wyam related
docs/config.wyam.dll
docs/config.wyam.hash
docs/config.wyam.packages.xml

*.orig

.DS_Store
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"Transifex",
"Veyor",
"WEBHOOKURL",
"Wyam",
"Xunit",
"bootstrapper",
"cakecontrib",
Expand Down
2 changes: 0 additions & 2 deletions Source/Cake.Recipe/Content/addins.cake
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
#addin nuget:?package=Portable.BouncyCastle&version=1.8.5
#addin nuget:?package=Cake.Email&version=2.0.0&loaddependencies=true
#addin nuget:?package=Cake.Incubator&version=8.0.0
#addin nuget:?package=Cake.Kudu&version=3.0.0
#addin nuget:?package=Cake.MicrosoftTeams&version=2.0.0
#addin nuget:?package=Cake.Slack&version=2.0.0
#addin nuget:?package=Cake.Transifex&version=2.0.0
#addin nuget:?package=Cake.Twitter&version=3.0.0
#addin nuget:?package=Cake.Wyam&version=2.2.14
#addin nuget:?package=Cake.Mastodon&version=1.1.0

#load nuget:?package=Cake.Issues.Recipe&version=3.1.1
Expand Down
22 changes: 0 additions & 22 deletions Source/Cake.Recipe/Content/credentials.cake
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,6 @@ public class TransifexCredentials : AppVeyorCredentials
}
}

public class WyamCredentials
{
public string AccessToken { get; private set; }
public string DeployRemote { get; private set; }
public string DeployBranch { get; private set; }

public WyamCredentials(string accessToken, string deployRemote, string deployBranch)
{
AccessToken = accessToken;
DeployRemote = deployRemote;
DeployBranch = deployBranch;
}
}

public class MastodonCredentials
{
public string AccessToken { get; private set; }
Expand Down Expand Up @@ -229,14 +215,6 @@ public static TransifexCredentials GetTransifexCredentials(ICakeContext context)
);
}

public static WyamCredentials GetWyamCredentials(ICakeContext context)
{
return new WyamCredentials(
context.EnvironmentVariable(Environment.WyamAccessTokenVariable),
context.EnvironmentVariable(Environment.WyamDeployRemoteVariable),
context.EnvironmentVariable(Environment.WyamDeployBranchVariable));
}

public static MastodonCredentials GetMastodonCredentials(ICakeContext context)
{
return new MastodonCredentials(
Expand Down
38 changes: 38 additions & 0 deletions Source/Cake.Recipe/Content/documentation.cake
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
///////////////////////////////////////////////////////////////////////////////
// TASK DEFINITIONS
///////////////////////////////////////////////////////////////////////////////

BuildParameters.Tasks.CleanDocumentationTask = Task("Clean-Documentation")
.Does(() =>
{
Information("This task is intentionally left empty until a replacement tool is selected.");
});

BuildParameters.Tasks.PublishDocumentationTask = Task("Publish-Documentation")
.IsDependentOn("Clean-Documentation")
.WithCriteria(() => BuildParameters.ShouldGenerateDocumentation, "Documentation has been disabled")
.Does(() =>
{
Information("This task is intentionally left empty until a replacement tool is selected.");
}
)
.OnError(exception =>
{
Error(exception.Message);
Information("Publish-Documentation Task failed, but continuing with next Task...");
publishingError = true;
});

BuildParameters.Tasks.PreviewDocumentationTask = Task("Preview-Documentation")
.Does(() =>
{
Information("This task is intentionally left empty until a replacement tool is selected.");
}
);

BuildParameters.Tasks.ForcePublishDocumentationTask = Task("Force-Publish-Documentation")
.IsDependentOn("Clean-Documentation")
.Does(() => {
Information("This task is intentionally left empty until a replacement tool is selected.");
}
);
9 changes: 0 additions & 9 deletions Source/Cake.Recipe/Content/environment.cake
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ public static class Environment
public static string CoverallsRepoTokenVariable { get; private set; }
public static string MicrosoftTeamsWebHookUrlVariable { get; private set; }
public static string TransifexApiTokenVariable { get; private set; }
public static string WyamAccessTokenVariable { get; private set; }
public static string WyamDeployRemoteVariable { get; private set; }
public static string WyamDeployBranchVariable { get; private set; }
public static string MastodonAccessTokenVariable { get; private set; }
public static string MastodonInstanceUrlVariable { get; private set; }

Expand All @@ -41,9 +38,6 @@ public static class Environment
string coverallsRepoTokenVariable = null,
string microsoftTeamsWebHookUrlVariable = null,
string transifexApiTokenVariable = null,
string wyamAccessTokenVariable = null,
string wyamDeployRemoteVariable = null,
string wyamDeployBranchVariable = null,
string mastodonAccessTokenVariable = null,
string mastodonInstanceUrlVariable = null)
{
Expand All @@ -64,9 +58,6 @@ public static class Environment
CoverallsRepoTokenVariable = coverallsRepoTokenVariable ?? "COVERALLS_REPO_TOKEN";
MicrosoftTeamsWebHookUrlVariable = microsoftTeamsWebHookUrlVariable ?? "MICROSOFTTEAMS_WEBHOOKURL";
TransifexApiTokenVariable = transifexApiTokenVariable ?? "TRANSIFEX_API_TOKEN";
WyamAccessTokenVariable = wyamAccessTokenVariable ?? "WYAM_ACCESS_TOKEN";
WyamDeployRemoteVariable = wyamDeployRemoteVariable ?? "WYAM_DEPLOY_REMOTE";
WyamDeployBranchVariable = wyamDeployBranchVariable ?? "WYAM_DEPLOY_BRANCH";
MastodonAccessTokenVariable = mastodonAccessTokenVariable ?? "MASTODON_ACCESS_TOKEN";
MastodonInstanceUrlVariable = mastodonInstanceUrlVariable ?? "MASTODON_INSTANCE_URL";
}
Expand Down
52 changes: 0 additions & 52 deletions Source/Cake.Recipe/Content/parameters.cake
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public static class BuildParameters
public static CodecovCredentials Codecov { get; private set; }
public static CoverallsCredentials Coveralls { get; private set; }
public static TransifexCredentials Transifex { get; private set; }
public static WyamCredentials Wyam { get; private set; }
public static BuildPaths Paths { get; private set; }
public static BuildTasks Tasks { get; set; }
public static DirectoryPath RootDirectoryPath { get; private set; }
Expand Down Expand Up @@ -111,16 +110,6 @@ public static class BuildParameters
}
}

public static DirectoryPath WyamRootDirectoryPath { get; private set; }
public static DirectoryPath WyamPublishDirectoryPath { get; private set; }
public static FilePath WyamConfigurationFile { get; private set; }
public static string WyamRecipe { get; private set; }
public static string WyamTheme { get; private set; }
public static string WyamSourceFiles { get; private set; }
public static string WebHost { get; private set; }
public static string WebLinkRoot { get; private set; }
public static string WebBaseEditUrl { get; private set; }

public static FilePath NuSpecFilePath { get; private set; }

public static FilePath NugetConfig { get; private set; }
Expand All @@ -143,16 +132,6 @@ public static class BuildParameters
}
}

public static bool CanUseWyam
{
get
{
return !string.IsNullOrEmpty(BuildParameters.Wyam.AccessToken) &&
!string.IsNullOrEmpty(BuildParameters.Wyam.DeployRemote) &&
!string.IsNullOrEmpty(BuildParameters.Wyam.DeployBranch);
}
}

public static bool CanPublishToCodecov
{
get
Expand Down Expand Up @@ -236,17 +215,6 @@ public static class BuildParameters
context.Information("TransifexPullPercentage: {0}", TransifexPullPercentage);
}

context.Information("WyamRootDirectoryPath: {0}", WyamRootDirectoryPath);
context.Information("WyamPublishDirectoryPath: {0}", WyamPublishDirectoryPath);
context.Information("WyamConfigurationFile: {0}", WyamConfigurationFile);
context.Information("WyamRecipe: {0}", WyamRecipe);
context.Information("WyamTheme: {0}", WyamTheme);
context.Information("WyamSourceFiles: {0}", WyamSourceFiles);
context.Information("Wyam Deploy Branch: {0}", Wyam.DeployBranch);
context.Information("Wyam Deploy Remote: {0}", Wyam.DeployRemote);
context.Information("WebHost: {0}", WebHost);
context.Information("WebLinkRoot: {0}", WebLinkRoot);
context.Information("WebBaseEditUrl: {0}", WebBaseEditUrl);
context.Information("NuSpecFilePath: {0}", NuSpecFilePath);
context.Information("NugetConfig: {0} ({1})", NugetConfig, context.FileExists(NugetConfig));
context.Information("NuGetSources: {0}", string.Join(", ", NuGetSources));
Expand Down Expand Up @@ -299,15 +267,6 @@ public static class BuildParameters
int transifexPullPercentage = 60,
string microsoftTeamsMessage = null,
string twitterMessage = null,
DirectoryPath wyamRootDirectoryPath = null,
DirectoryPath wyamPublishDirectoryPath = null,
FilePath wyamConfigurationFile = null,
string wyamRecipe = null,
string wyamTheme = null,
string wyamSourceFiles = null,
string webHost = null,
string webLinkRoot = null,
string webBaseEditUrl = null,
FilePath nuspecFilePath = null,
bool isPublicRepository = true,
FilePath nugetConfig = null,
Expand Down Expand Up @@ -363,16 +322,6 @@ public static class BuildParameters
TransifexPullMode = transifexPullMode;
TransifexPullPercentage = transifexPullPercentage;

WyamRootDirectoryPath = wyamRootDirectoryPath ?? context.MakeAbsolute(context.Directory("docs"));
WyamPublishDirectoryPath = wyamPublishDirectoryPath ?? context.MakeAbsolute(context.Directory("BuildArtifacts/temp/_PublishedDocumentation"));
WyamConfigurationFile = wyamConfigurationFile ?? context.MakeAbsolute((FilePath)"config.wyam");
WyamRecipe = wyamRecipe ?? "Docs";
WyamTheme = wyamTheme ?? "Samson";
WyamSourceFiles = wyamSourceFiles ?? "../../" + SourceDirectoryPath.FullPath + "/**/{!bin,!obj,!packages,!*.Tests,}/**/*.cs";
WebHost = webHost ?? string.Format("{0}.github.io", repositoryOwner);
WebLinkRoot = webLinkRoot ?? RepositoryName;
WebBaseEditUrl = webBaseEditUrl ?? string.Format("https://github.com/{0}/{1}/tree/{2}/docs/input/", repositoryOwner, RepositoryName, developBranchName);

ShouldDownloadFullReleaseNotes = shouldDownloadFullReleaseNotes;
ShouldDownloadMilestoneReleaseNotes = shouldDownloadMilestoneReleaseNotes;
ShouldNotifyBetaReleases = shouldNotifyBetaReleases;
Expand Down Expand Up @@ -517,7 +466,6 @@ public static class BuildParameters
Codecov = GetCodecovCredentials(context);
Coveralls = GetCoverallsCredentials(context);
Transifex = GetTransifexCredentials(context);
Wyam = GetWyamCredentials(context);
IsPublishBuild = new [] {
"Create-Release-Notes"
}.Any(
Expand Down
15 changes: 1 addition & 14 deletions Source/Cake.Recipe/Content/toolsettings.cake
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ public static class ToolSettings
public static string GitReleaseManagerTool { get; private set; }
public static string GitVersionTool { get; private set; }
public static string ReSharperTools { get; private set; }
public static string KuduSyncTool { get; private set; }
public static string WyamTool { get; private set; }
public static string XUnitTool { get; private set; }
public static string NUnitTool { get; private set; }
public static string NuGetTool { get; private set; }
Expand All @@ -34,8 +32,6 @@ public static class ToolSettings
public static string GitReleaseManagerGlobalTool { get; private set; }
public static string GitVersionGlobalTool { get; private set; }
public static string ReportGeneratorGlobalTool { get; private set; }
public static string WyamGlobalTool { get; private set; }
public static string KuduSyncGlobalTool { get; private set; }

public static void SetToolPreprocessorDirectives(
string codecovTool = "#tool nuget:?package=CodecovUploader&version=0.8.0",
Expand All @@ -45,8 +41,6 @@ public static class ToolSettings
// This is specifically pinned to 5.0.1 as later versions break compatibility with Unix.
string gitVersionTool = "#tool nuget:?package=GitVersion.CommandLine&version=5.0.1",
string reSharperTools = "#tool nuget:?package=JetBrains.ReSharper.CommandLineTools&version=2025.2.2.1",
string kuduSyncTool = "#tool nuget:?package=KuduSync.NET&version=1.5.4",
string wyamTool = "#tool nuget:?package=Wyam&version=2.2.9",
string xunitTool = "#tool nuget:?package=xunit.runner.console&version=2.9.3",
string nunitTool = "#tool nuget:?package=NUnit.ConsoleRunner&version=3.20.1",
string nugetTool = "#tool nuget:?package=NuGet.CommandLine&version=6.14.0",
Expand All @@ -57,19 +51,14 @@ public static class ToolSettings
string coverallsGlobalTool = "#tool dotnet:?package=coveralls.net&version=1.0.0",
string gitReleaseManagerGlobalTool = "#tool dotnet:?package=GitReleaseManager.Tool&version=0.20.0",
string gitVersionGlobalTool = "#tool dotnet:?package=GitVersion.Tool&version=5.12.0",
string reportGeneratorGlobalTool = "#tool dotnet:?package=dotnet-reportgenerator-globaltool&version=4.8.5",
string wyamGlobalTool = "#tool dotnet:?package=Wyam.Tool&version=2.2.9",
// This is using an unofficial build of kudusync so that we can have a .NET Global tool version. This was generated from this PR: https://github.com/projectkudu/KuduSync.NET/pull/27
string kuduSyncGlobalTool = "#tool dotnet:https://www.myget.org/F/cake-contrib/api/v3/index.json?package=KuduSync.Tool&version=1.5.4-g3916ad7218"
string reportGeneratorGlobalTool = "#tool dotnet:?package=dotnet-reportgenerator-globaltool&version=4.8.5"
)
{
CodecovTool = codecovTool;
CoverallsTool = coverallsTool;
GitReleaseManagerTool = gitReleaseManagerTool;
GitVersionTool = gitVersionTool;
ReSharperTools = reSharperTools;
KuduSyncTool = kuduSyncTool;
WyamTool = wyamTool;
XUnitTool = xunitTool;
NUnitTool = nunitTool;
NuGetTool = nugetTool;
Expand All @@ -81,8 +70,6 @@ public static class ToolSettings
GitReleaseManagerGlobalTool = gitReleaseManagerGlobalTool;
CodecovGlobalTool = codecovGlobalTool;
CoverallsGlobalTool = coverallsGlobalTool;
WyamGlobalTool = wyamGlobalTool;
KuduSyncGlobalTool = kuduSyncGlobalTool;
}

public static void SetToolSettings(
Expand Down
Loading