зеркало из
1
0
Форкнуть 0

Add nunit.core.engine nuspec package. Fixes #641

This commit is contained in:
Charlie Poole 2015-05-11 10:30:41 -07:00
Родитель 12b39bd765
Коммит 478955aab7
5 изменённых файлов: 60 добавлений и 10 удалений

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

@ -53,7 +53,7 @@
</PropertyGroup>
<PropertyGroup Label="Packaging Directories">
<CurrentImageDir Condition="'$(CurrentImageDir)' == ''">$(ProjectImageDir)\$(PackageName)</CurrentImageDir>
<CurrentImageDir Condition="'$(CurrentImageDir)' == ''">$(ProjectImageDir)\$(PackageName)$(ConfigSuffix)</CurrentImageDir>
<PackageBinDir>$(CurrentImageDir)\bin</PackageBinDir>
<PackageDocDir>$(CurrentImageDir)\doc</PackageDocDir>
<PackageSrcDir>$(CurrentImageDir)\src</PackageSrcDir>
@ -401,6 +401,8 @@
<Message Text="* Creating the binary $(Configuration) package as $(PackageName)$(ConfigSuffix).zip" />
<Message Text="******************************************************************" />
<CallTarget Targets="_RemoveGitDirFromImage" />
<Exec Command='git init "$(CurrentImageDir)"' />
<Exec WorkingDirectory='$(CurrentImageDir)' Command='git add -A' />
<Exec WorkingDirectory='$(CurrentImageDir)' Command='git rm --cached bin\netcf-3.5\*' />
@ -409,12 +411,13 @@
<Exec WorkingDirectory='$(CurrentImageDir)' Command='git commit -m "Export"' />
<Exec WorkingDirectory='$(CurrentImageDir)'
Command='git archive -o "$(ProjectPackageDir)\$(PackageName)$(ConfigSuffix).zip" HEAD'></Exec>
<Exec Command="$(RemoveDir) $(CurrentImageDir)\.git" />
<CallTarget Targets="_RemoveGitDirFromImage" />
</Target>
<Target Name="PackageNuGet" Label="Creates all standard NuGet packages"
DependsOnTargets="PackageNuGetNUnit;PackageNuGetNUnitLite;PackageNuGetConsole" />
<Target Name="PackageNuGet" Label="Creates all NuGet packages"
DependsOnTargets="PackageNuGetNUnit;PackageNuGetNUnitLite;PackageNuGetConsole;PackageNugetCoreEngine" />
<Target Name="PackageNuGetNUnit" Label="Creates the NUnit Framework NuGet package"
DependsOnTargets="_CreateImageIfNotPresent">
@ -450,22 +453,33 @@
</Target>
<Target Name="PackageNuGetCoreEngine" Label="Creates the NUnit.Core.Engine NuGet package"
DependsOnTargets="_CreateImageIfNotPresent">
<Message Text="******************************************************************" />
<Message Text="* Creating the NUnit.Core.Engine Nuget $(Configuration) package" />
<Message Text="******************************************************************" />
<Exec WorkingDirectory="$(ProjectBaseDir)"
Command="$(ManagedExeLauncher) &quot;$(NugetExecutable)&quot; pack $(NuspecDirectory)\nunit.core.engine.nuspec -NoPackageAnalysis -BasePath &quot;$(CurrentImageDir)&quot; -OutputDirectory &quot;$(ProjectPackageDir)&quot; -Properties version=$(NugetVersion)" />
</Target>
<Target Name="PackageMasterMsi" Label="Creates the master MSI installer for NUnit"
DependsOnTargets="_CreateImageIfNotPresent">
<MSBuild Targets="Rebuild" Projects="$(InstallDir)\master\nunit.wixproj"
Properties="Configuration=$(Configuration); Platform=x86; PackageVersion=$(PackageVersion)$(PackageModifier); DisplayVersion=$(DisplayVersion); OutDir=$(ProjectPackageDir)\; InstallImage=$(CurrentImageDir)" />
Properties="Configuration=$(Configuration); Platform=x86; PackageVersion=$(PackageVersion)$(PackageModifier)$(ConfigSuffix); DisplayVersion=$(DisplayVersion); OutDir=$(ProjectPackageDir)\; InstallImage=$(CurrentImageDir)" />
</Target>
<Target Name="PackageFrameworkMsi" Label="Creates the MSI installer for the NUnit.Framework"
DependsOnTargets="_CreateImageIfNotPresent">
<MSBuild Targets="Rebuild" Projects="$(InstallDir)\framework\nunit-framework.wixproj"
Properties="Configuration=$(Configuration); Platform=x86; OutputPath=$(ProjectPackageDir) PackageVersion=$(PackageVersion)$(PackageModifier); DisplayVersion=$(DisplayVersion); OutDir=$(ProjectPackageDir)\; InstallImage=$(CurrentImageDir)" />
Properties="Configuration=$(Configuration); Platform=x86; PackageVersion=$(PackageVersion)$(PackageModifier)$(ConfigSuffix); DisplayVersion=$(DisplayVersion); OutDir=$(ProjectPackageDir)\; InstallImage=$(CurrentImageDir)" />
</Target>
<Target Name="PackageConsoleMsi" Label="Creates the MSI installer for the NUnit console runner and engine"
DependsOnTargets="_CreateImageIfNotPresent">
<MSBuild Targets="Rebuild" Projects="$(InstallDir)\runners\nunit-runners.wixproj"
Properties="Configuration=$(Configuration); Platform=x86; PackageVersion=$(PackageVersion)$(PackageModifier); DisplayVersion=$(DisplayVersion); OutDir=$(ProjectPackageDir)\; InstallImage=$(CurrentImageDir)" />
Properties="Configuration=$(Configuration); Platform=x86; PackageVersion=$(PackageVersion)$(PackageModifier)$(ConfigSuffix); DisplayVersion=$(DisplayVersion); OutDir=$(ProjectPackageDir)\; InstallImage=$(CurrentImageDir)" />
</Target>
<Target Name="PackageAllMsis" Label="Creates all of the MSI installers for NUnit"
@ -481,6 +495,8 @@
<Message Text="* Creating the binary $(Configuration) package as $(PackageNameCF)$(ConfigSuffix).zip" />
<Message Text="******************************************************************" />
<CallTarget Targets="_RemoveGitDirFromImage" />
<Exec Command='git init "$(CurrentImageDir)"' />
<Exec WorkingDirectory='$(CurrentImageDir)' Command='git add *.txt nunit.ico' />
<Exec WorkingDirectory='$(CurrentImageDir)' Command='git add bin\netcf-3.5\*' />
@ -489,7 +505,8 @@
<Exec WorkingDirectory='$(CurrentImageDir)' Command='git commit -m "Export"' />
<Exec WorkingDirectory='$(CurrentImageDir)'
Command='git archive -o "$(ProjectPackageDir)\$(PackageNameCF)$(ConfigSuffix).zip" HEAD'></Exec>
<Exec Command="$(RemoveDir) $(CurrentImageDir)\.git" />
<CallTarget Targets="_RemoveGitDirFromImage" />
</Target>
<Target Name="PackageNuGetNUnitCF" Label="Creates the NUnit Framework NuGet package for compact framework"
@ -539,7 +556,11 @@
<Exec Command="$(RemoveDir) $(CurrentImageDir)" Condition="Exists('$(CurrentImageDir)')" />
<MakeDir Directories="$(CurrentImageDir)" />
</Target>
<Target Name="_RemoveGitDirFromImage">
<Exec Command="$(RemoveDir) $(CurrentImageDir)\.git" Condition="Exists('$(CurrentImageDir)\.git')" />
</Target>
<!-- *********************************************************************** -->
<!-- Lists For Use by Targets -->
<!-- *********************************************************************** -->

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

@ -0,0 +1,26 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>NUnit.Core.Engine</id>
<title>NUnit Core Engine Version 3</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>The NUnit Core Engine handles is used by runners to load and execute tests within a process.</summary>
<description>This package includes the nunit.core.engine assembly, which may be used by runner programs that need to load and run tests within the same process as an alternative to the full engine.&#10;&#13;&#10;&#13;It is particularly suited for use by device runners. Third party runners that set up their own process for execution may also find this useful.&#10;&#13;&#10;&#13;This package is not intended for direct use by users who simply want to run tests.</description>
<releaseNotes>This is an beta release. However, the interface to the engine is considered stable at this point.</releaseNotes>
<language>en-US</language>
<tags>nunit test testing tdd engine</tags>
<copyright>Copyright (c) 2015 Charlie Poole</copyright>
</metadata>
<files>
<file src="LICENSE.txt" />
<file src="NOTICES.txt" />
<file src="CHANGES.txt" />
<file src="bin\nunit.core.engine.dll" target="lib" />
</files>
</package>

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

@ -61,6 +61,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "nuget", "nuget", "{A972031D
ProjectSection(SolutionItems) = preProject
nuget\install.ps1 = nuget\install.ps1
nuget\nunit.console.nuspec = nuget\nunit.console.nuspec
nuget\nunit.core.engine.nuspec = nuget\nunit.core.engine.nuspec
nuget\nunit.nuspec = nuget\nunit.nuspec
nuget\nunitlite.nuspec = nuget\nunitlite.nuspec
nuget\Program.cs = nuget\Program.cs

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

@ -16,6 +16,8 @@
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation />
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>../../nunit.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>

Двоичные данные
src/nunit.snk Normal file

Двоичный файл не отображается.