Add Packaging to script
This commit is contained in:
Родитель
21694d2a58
Коммит
12546dd4f6
|
@ -0,0 +1,20 @@
|
|||
Copyright (c) 2016 Charlie Poole
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
13
build.cake
13
build.cake
|
@ -155,16 +155,13 @@ Task("CreateWorkingImage")
|
|||
CleanDirectory(PACKAGE_IMAGE_DIR);
|
||||
|
||||
CopyFileToDirectory("LICENSE.txt", PACKAGE_IMAGE_DIR);
|
||||
CopyFileToDirectory("nunit.v2.driver.addins", PACKAGE_IMAGE_DIR);
|
||||
|
||||
var binFiles = new FilePath[]
|
||||
{
|
||||
BIN_DIR + "NUnit3.TestAdapter.dll",
|
||||
BIN_DIR + "nunit.engine.dll",
|
||||
BIN_DIR + "nunit.engine.api.dll",
|
||||
BIN_DIR + "Mono.Cecil.dll",
|
||||
BIN_DIR + "Mono.Cecil.Pdb.dll",
|
||||
BIN_DIR + "Mono.Cecil.Mdb.dll",
|
||||
BIN_DIR + "Mono.Cecil.Rocks.dll"
|
||||
BIN_DIR + "nunit.core.dll",
|
||||
BIN_DIR + "nunit.core.interfaces.dll",
|
||||
BIN_DIR + "nunit.v2.driver.dll",
|
||||
};
|
||||
|
||||
var binDir = PACKAGE_IMAGE_DIR + "bin/";
|
||||
|
@ -183,7 +180,7 @@ Task("PackageNuGet")
|
|||
.IsDependentOn("CreateWorkingImage")
|
||||
.Does(() =>
|
||||
{
|
||||
NuGetPack("nuget/NUnit3TestAdapter.nuspec", new NuGetPackSettings()
|
||||
NuGetPack("nunit.v2.driver.nuspec", new NuGetPackSettings()
|
||||
{
|
||||
Version = packageVersion,
|
||||
BasePath = PACKAGE_IMAGE_DIR,
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
nunit.v2.driver.dll
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>NUnit.Extension.NUnitV2Driver</id>
|
||||
<title>NUnit 3 - NUnit V2 Framework Driver Extension</title>
|
||||
<version>$version$</version>
|
||||
<authors>Charlie Poole</authors>
|
||||
<owners>Charlie Poole</owners>
|
||||
<licenseUrl>http://nunit.org/nuget/nunit3-license.txt</licenseUrl>
|
||||
<projectUrl>http://nunit.org</projectUrl>
|
||||
<iconUrl>http://nunit.org/nuget/nunitv3_32x32.png</iconUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<summary>NUnit Engine extension allowing execution of tests using NUnit 2.x.</summary>
|
||||
<description>This extension allows NUnit to load and run tests compiled against earlier versions of the NUnit framework. Versions 2.0 through 2.6.4 are supported.</description>
|
||||
<releaseNotes></releaseNotes>
|
||||
<language>en-US</language>
|
||||
<tags>nunit test testing tdd runner</tags>
|
||||
<copyright>Copyright (c) 2016 Charlie Poole</copyright>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="LICENSE.txt" />
|
||||
<file src="nunit.v2.driver.addins" target="tools"/>
|
||||
<file src="bin\nunit.v2.driver.dll" target="tools"/>
|
||||
<file src="bin\nunit.core.dll" target="tools"/>
|
||||
<file src="bin\nunit.core.interfaces.dll" target="tools"/>
|
||||
</files>
|
||||
</package>
|
|
@ -13,6 +13,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
|||
build.cmd = build.cmd
|
||||
build.ps1 = build.ps1
|
||||
build.sh = build.sh
|
||||
nunit.v2.driver.nuspec = nunit.v2.driver.nuspec
|
||||
README.md = README.md
|
||||
EndProjectSection
|
||||
EndProject
|
||||
|
|
Загрузка…
Ссылка в новой задаче