Skip to content

Commit 37a1b61

Browse files
authored
Merge pull request #1039 from nunit/issue-720
Stop re-publishing deprecated packages with each new release
2 parents 65cd7a0 + a43a479 commit 37a1b61

6 files changed

+9
-59
lines changed

NUnitConsole.sln

+6-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "choco", "choco", "{4FDF7BFA
8282
choco\nunit-agent-x86.exe.ignore = choco\nunit-agent-x86.exe.ignore
8383
choco\nunit-agent.exe.ignore = choco\nunit-agent.exe.ignore
8484
choco\nunit-console-runner.nuspec = choco\nunit-console-runner.nuspec
85-
choco\nunit-console-with-extensions.nuspec = choco\nunit-console-with-extensions.nuspec
8685
choco\nunit.agent.addins = choco\nunit.agent.addins
8786
choco\nunit.choco.addins = choco\nunit.choco.addins
8887
choco\VERIFICATION.txt = choco\VERIFICATION.txt
@@ -100,6 +99,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "nunit-agent-x86", "src\NUni
10099
EndProject
101100
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "mock-assembly-x86", "src\NUnitEngine\mock-assembly-x86\mock-assembly-x86.csproj", "{9D3015EE-5B84-41B3-A1D3-1A439370C392}"
102101
EndProject
102+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "deprecated", "deprecated", "{068F6CA9-6108-4F45-8540-351AA5227259}"
103+
ProjectSection(SolutionItems) = preProject
104+
choco\deprecated\nunit-console-with-extensions.nuspec = choco\deprecated\nunit-console-with-extensions.nuspec
105+
EndProjectSection
106+
EndProject
103107
Global
104108
GlobalSection(SolutionConfigurationPlatforms) = preSolution
105109
Debug|Any CPU = Debug|Any CPU
@@ -171,6 +175,7 @@ Global
171175
{A19C026B-1C0F-4AA3-AC49-7D8B4C7231CF} = {31B45C4C-206F-4F31-9CC6-33BF11DFEE39}
172176
{333D2FBC-CCA7-46AF-9453-C310671A67B0} = {31B45C4C-206F-4F31-9CC6-33BF11DFEE39}
173177
{9D3015EE-5B84-41B3-A1D3-1A439370C392} = {31B45C4C-206F-4F31-9CC6-33BF11DFEE39}
178+
{068F6CA9-6108-4F45-8540-351AA5227259} = {4FDF7BFA-A337-41D3-898D-C6A98278E6AD}
174179
EndGlobalSection
175180
GlobalSection(ExtensibilityGlobals) = postSolution
176181
SolutionGuid = {D8E4FC26-5422-4C51-8BBC-D1AC0A578711}

build.cake

-16
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,6 @@ Task("BuildNuGetPackages")
408408
NuGetPack("nuget/runners/nunit.console-runner-with-extensions.nuspec", basicPackSettings);
409409

410410
NuGetPack("nuget/runners/nunit.console-runner.netcore.nuspec", packSettingsWithSymbols);
411-
412-
NuGetPack("nuget/deprecated/nunit.runners.nuspec", basicPackSettings);
413-
414-
NuGetPack("nuget/deprecated/nunit.engine.netstandard.nuspec", basicPackSettings);
415411
});
416412

417413
Task("TestNuGetPackages")
@@ -481,18 +477,6 @@ Task("BuildChocolateyPackages")
481477
new ChocolateyNuSpecContent { Source = CURRENT_IMG_NET20_BIN_DIR + "testcentric.engine.metadata.dll", Target="tools" }
482478
}
483479
});
484-
485-
ChocolateyPack("choco/nunit-console-with-extensions.nuspec",
486-
new ChocolateyPackSettings()
487-
{
488-
Version = productVersion,
489-
OutputDirectory = PACKAGE_DIR,
490-
Files = new [] {
491-
new ChocolateyNuSpecContent { Source = CURRENT_IMG_DIR + "LICENSE.txt", Target = "tools" },
492-
new ChocolateyNuSpecContent { Source = CURRENT_IMG_DIR + "NOTICES.txt", Target = "tools" },
493-
new ChocolateyNuSpecContent { Source = CHOCO_DIR + "VERIFICATION.txt", Target = "tools" }
494-
}
495-
});
496480
});
497481

498482
Task("TestChocolateyPackage")

choco/nunit-console-with-extensions.nuspec choco/deprecated/nunit-console-with-extensions.nuspec

+3-15
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,9 @@
77
<title>NUnit 3 Console Runner Plus Extensions</title>
88
<summary>Console runner for the NUnit 3 unit-testing framework with selected extensions.</summary>
99
<description>
10-
This package includes the nunit3-console runner and test engine for version 3 of the NUnit unit-testing framework.
11-
12-
The following extensions are included with this package:
13-
* NUnitProjectLoader - loads tests from NUnit projects
14-
* VSProjectLoader - loads tests from Visual Studio projects
15-
* NUnitV2ResultWriter - saves results in NUnit V2 format.
16-
* NUnitV2FrameworkDriver - runs NUnit V2 tests.
17-
* TeamCityEventListener - supports special progress messages used by teamcity.
18-
19-
Other extensions, if needed, must be installed separately.
10+
This package is now obsolete. It is partially replaced by the nunit-console-runner package.
11+
Because of the nature of Chocolatey, it is not necessary to have a console runner with a set of
12+
standard extensions built-in. Install extensions separately for use with nunit-console-runner.
2013
</description>
2114
<projectUrl>https://nunit.org</projectUrl>
2215
<projectSourceUrl>https://github.com/nunit/nunit-console</projectSourceUrl>
@@ -36,11 +29,6 @@
3629
<dependencies>
3730
<group>
3831
<dependency id="nunit-console-runner" version="$version$" />
39-
<dependency id="nunit-extension-nunit-project-loader" version="3.6.0" />
40-
<dependency id="nunit-extension-vs-project-loader" version="3.8.0" />
41-
<dependency id="nunit-extension-nunit-v2-result-writer" version="3.6.0" />
42-
<dependency id="nunit-extension-nunit-v2-driver" version="3.8.0" />
43-
<dependency id="nunit-extension-teamcity-event-listener" version="1.0.7" />
4432
</group>
4533
</dependencies>
4634
</metadata>

nuget/deprecated/nunit.engine.netstandard.nuspec

-6
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
<summary>Deprecated NUnit 3 .NET Standard engine - use NUnit.Engine.</summary>
1616
<description>
1717
This package is now obsolete and has been replaced by the NUnit.Engine package.
18-
19-
Provides a common interface for loading, exploring and running NUnit tests in .NET Core and .NET Standard
2018
</description>
2119
<language>en-US</language>
2220
<tags>nunit test testing tdd runner</tags>
@@ -27,8 +25,4 @@
2725
</group>
2826
</dependencies>
2927
</metadata>
30-
<files>
31-
<file src="LICENSE.txt" />
32-
<file src="..\..\nunit_256.png" target="images"/>
33-
</files>
3428
</package>

nuget/deprecated/nunit.runners.nuspec

-15
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,6 @@
1515
<summary>Deprecated NUnit 3 console runner - use NUnit.Console or NUnit.ConsoleRunner.</summary>
1616
<description>
1717
This package is now obsolete and has been replaced by the NUnit.Console package.
18-
19-
It includes the nunit3-console runner and test engine for version 3 of the NUnit unit-testing framework.
20-
21-
The following extensions are included with this package:
22-
* NUnitProjectLoader - loads tests from NUnit projects
23-
* VSProjectLoader - loads tests from Visual Studio projects
24-
* NUnitV2ResultWriter - saves results in NUnit V2 format.
25-
* NUnitV2FrameworkDriver - runs NUnit V2 tests.
26-
* TeamCityEventListener - supports special progress messages used by teamcity.
27-
28-
Other extensions, if needed, must be installed separately.
2918
</description>
3019
<releaseNotes>https://docs.nunit.org/articles/nunit/release-notes/console-and-engine.html</releaseNotes>
3120
<language>en-US</language>
@@ -37,8 +26,4 @@
3726
</group>
3827
</dependencies>
3928
</metadata>
40-
<files>
41-
<file src="LICENSE.txt" />
42-
<file src="..\..\nunit_256.png" target="images"/>
43-
</files>
4429
</package>

package-checks.cake

-6
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,11 @@ public void CheckAllPackages()
7878
"NUnit.Engine.Api",
7979
HasDirectory("lib/net20").WithFile("nunit.engine.api.pdb"),
8080
HasDirectory("lib/netstandard2.0").WithFile("nunit.engine.api.pdb")) &
81-
CheckNuGetPackage(
82-
"NUnit.Runners",
83-
HasFile("LICENSE.txt")) &
8481
CheckChocolateyPackage(
8582
"nunit-console-runner",
8683
HasDirectory("tools").WithFiles("LICENSE.txt", "NOTICES.txt", "VERIFICATION.txt").AndFiles(CONSOLE_FILES).AndFiles(ENGINE_FILES).AndFile("nunit.choco.addins"),
8784
HasDirectory("tools/agents/net20").WithFiles(AGENT_FILES).AndFile("nunit.agent.addins"),
8885
HasDirectory("tools/agents/net40").WithFiles(AGENT_FILES).AndFile("nunit.agent.addins")) &
89-
CheckChocolateyPackage(
90-
"nunit-console-with-extensions",
91-
HasDirectory("tools").WithFiles("LICENSE.txt", "NOTICES.txt", "VERIFICATION.txt")) &
9286
CheckZipPackage(
9387
"NUnit.Console",
9488
HasFiles("LICENSE.txt", "license.rtf", "NOTICES.txt", "CHANGES.txt"),

0 commit comments

Comments
 (0)