Rename CHANGES.txt to CHANGES.md

This commit is contained in:
Charlie Poole 2021-09-15 12:50:23 -07:00
Родитель aa8a273c92
Коммит bac67617c0
6 изменённых файлов: 35 добавлений и 19 удалений

1
.gitignore поставляемый
Просмотреть файл

@ -182,3 +182,4 @@ MockAssemblyResult.xml
PortabilityAnalysis*.html
tools
!tools/packages.config
DraftRelease.md

12
CHANGES.md Normal file
Просмотреть файл

@ -0,0 +1,12 @@
## NUnit V2 Result Writer Extension 3.6 - August 1, 2017
This release fixes an error in the build and adds a chocolatey package.
### Issues Resolved
* 3 No license file in NuGet package
* 4 Integrate chocolatey package in build script
## NUnit V2 Result Writer Extension 3.5 - October 6, 2016
The first independent release of the nunit-v2-result-writer extension.

Просмотреть файл

@ -1,12 +0,0 @@
NUnit V2 Result Writer Extension 3.6 - August 1, 2017
This release fixes an error in the build and adds a chocolatey package.
Issues Resulved
* 3 No license file in NuGet package
* 4 Integrate chocolatey package in build script
NUnit V2 Result Writer Extension 3.5 - October 6, 2016
The first independent release of the nunit-v2-result-writer extension.

Просмотреть файл

@ -173,7 +173,7 @@ Task("VerifyNuGetPackage")
.Does<BuildParameters>((parameters) =>
{
Check.That(parameters.NuGetInstallDirectory,
HasFiles("CHANGES.txt", "LICENSE.txt"),
HasFiles("CHANGES.md", "LICENSE.txt"),
HasDirectory("tools/net20").WithFile("nunit-v2-result-writer.dll"),
HasDirectory("tools/netcoreapp2.1").WithFile("nunit-v2-result-writer.dll"));
Information("Verification was successful!");
@ -212,7 +212,7 @@ Task("VerifyChocolateyPackage")
.Does<BuildParameters>((parameters) =>
{
Check.That(parameters.ChocolateyInstallDirectory,
HasDirectory("tools").WithFiles("CHANGES.txt", "LICENSE.txt", "VERIFICATION.txt"),
HasDirectory("tools").WithFiles("CHANGES.md", "LICENSE.txt", "VERIFICATION.txt"),
HasDirectory("tools/net20").WithFile("nunit-v2-result-writer.dll"),
HasDirectory("tools/netcoreapp2.1").WithFile("nunit-v2-result-writer.dll"));
Information("Verification was successful!");
@ -355,7 +355,7 @@ Task("CreateDraftRelease")
// for both the name of the draft release and the milestone,
// i.e. release-2.0.0, release-2.0.0-beta2, etc.
string milestone = parameters.BranchName.Substring(8);
string releaseName = $"NUnit V2 Result Writer {milestone}";
string releaseName = $"NUnit V2 Result Writer Extension {milestone}";
Information($"Creating draft release...");
@ -384,6 +384,21 @@ Task("CreateDraftRelease")
}
});
Task("ExportDraftRelease")
.Description("Export draft release locally for use in updating CHANGES.md")
.Does<BuildParameters>((parameters) =>
{
if (parameters.IsReleaseBranch && parameters.IsLocalBuild)
{
string milestone = parameters.BranchName.Substring(8);
GitReleaseManagerExport(parameters.GitHubAccessToken, GITHUB_OWNER, GITHUB_REPO, "DraftRelease.md",
new GitReleaseManagerExportSettings() { TagName = milestone });
}
else
Error("ExportDraftRelease may only be run locally, using a release branch!");
});
//////////////////////////////////////////////////////////////////////
// CREATE A PRODUCTION RELEASE
//////////////////////////////////////////////////////////////////////

Просмотреть файл

@ -10,7 +10,7 @@ static readonly string[] OWNERS = new[] { "Charlie Poole" };
const string DESCRIPTION = "This extension allows NUnit to create result files in the V2 format, which is used by many CI servers.";
const string SUMMARY = "NUnit Engine extension for writing test result files in NUnit V2 format.";
const string COPYRIGHT = "Copyright (c) 2016 Charlie Poole";
static readonly string[] RELEASE_NOTES = new [] { "See https://raw.githubusercontent.com/nunit/nunit-v2-result-writer/main/CHANGES.txt" };
static readonly string[] RELEASE_NOTES = new [] { "See https://raw.githubusercontent.com/nunit/nunit-v2-result-writer/main/CHANGES.md" };
static readonly string[] TAGS = new[] { "nunit", "test", "testing", "tdd", "runner" };
static readonly Uri PROJECT_URL = new Uri("http://nunit.org");
static readonly Uri ICON_URL = new Uri("https://cdn.rawgit.com/nunit/resources/master/images/icon/nunit_256.png");
@ -53,7 +53,7 @@ public void BuildNuGetPackage(BuildParameters parameters)
KeepTemporaryNuSpecFile = false,
Files = new[] {
new NuSpecContent { Source = parameters.ProjectDirectory + "LICENSE.txt" },
new NuSpecContent { Source = parameters.ProjectDirectory + "CHANGES.txt" },
new NuSpecContent { Source = parameters.ProjectDirectory + "CHANGES.md" },
new NuSpecContent { Source = parameters.ProjectDirectory + "net20.engine.addins", Target = "tools" },
new NuSpecContent { Source = parameters.OutputDirectory + "net20/nunit-v2-result-writer.dll", Target = "tools/net20" },
new NuSpecContent { Source = parameters.OutputDirectory + "netcoreapp2.1/nunit-v2-result-writer.dll", Target = "tools/netcoreapp2.1" }
@ -93,7 +93,7 @@ public void BuildChocolateyPackage(BuildParameters parameters)
OutputDirectory = parameters.PackageDirectory,
Files = new[] {
new ChocolateyNuSpecContent { Source = parameters.ProjectDirectory + "LICENSE.txt", Target = "tools" },
new ChocolateyNuSpecContent { Source = parameters.ProjectDirectory + "CHANGES.txt", Target = "tools" },
new ChocolateyNuSpecContent { Source = parameters.ProjectDirectory + "CHANGES.md", Target = "tools" },
new ChocolateyNuSpecContent { Source = parameters.ProjectDirectory + "VERIFICATION.txt", Target = "tools" },
new ChocolateyNuSpecContent { Source = parameters.ProjectDirectory + "net20.engine.addins", Target = "tools" },
new ChocolateyNuSpecContent { Source = parameters.OutputDirectory + "net20/nunit-v2-result-writer.dll", Target = "tools/net20" },

Просмотреть файл

@ -16,7 +16,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
build.cmd = build.cmd
build.ps1 = build.ps1
build.sh = build.sh
CHANGES.txt = CHANGES.txt
CHANGES.md = CHANGES.md
GitReleaseManager.yaml = GitReleaseManager.yaml
GitVersion.yml = GitVersion.yml
LICENSE.txt = LICENSE.txt