Add CI build
This commit is contained in:
Родитель
9eae5fb62b
Коммит
4d56665f9f
|
@ -0,0 +1,14 @@
|
|||
language: csharp
|
||||
sudo: false
|
||||
mono:
|
||||
- latest
|
||||
- 3.2.8
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
matrix:
|
||||
exclude:
|
||||
- os: osx
|
||||
mono: 3.2.8
|
||||
script:
|
||||
- ./build.sh --target "Travis"
|
|
@ -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.
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
build_script:
|
||||
- ps: .\build.ps1 -Target "Appveyor"
|
||||
|
||||
# disable built-in tests.
|
||||
test: off
|
||||
|
||||
artifacts:
|
||||
- path: package\*.nupkg
|
||||
|
||||
deploy:
|
||||
- provider: NuGet
|
||||
server: https://www.myget.org/F/nunit/api/v2
|
||||
api_key:
|
||||
secure: wtAvJDVl2tfwiVcyLExFHLvZVfUWiQRHsfdHBFCNEATeCHo1Nd8JP642PfY8xhji
|
||||
skip_symbols: true
|
||||
on:
|
||||
branch: master
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
./build.sh $CAKE_ARGS "$@"
|
|
@ -0,0 +1,197 @@
|
|||
#tool nuget:?package=NUnit.ConsoleRunner&version=3.4.1
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// ARGUMENTS
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
var target = Argument("target", "Default");
|
||||
var configuration = Argument("configuration", "Debug");
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// SET PACKAGE VERSION
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
var version = "3.5.0";
|
||||
var modifier = "";
|
||||
|
||||
var dbgSuffix = configuration == "Debug" ? "-dbg" : "";
|
||||
var packageVersion = version + modifier + dbgSuffix;
|
||||
|
||||
if (BuildSystem.IsRunningOnAppVeyor)
|
||||
{
|
||||
var tag = AppVeyor.Environment.Repository.Tag;
|
||||
|
||||
if (tag.IsTag)
|
||||
{
|
||||
packageVersion = tag.Name;
|
||||
}
|
||||
else
|
||||
{
|
||||
var buildNumber = AppVeyor.Environment.Build.Number;
|
||||
packageVersion = version + "-CI-" + buildNumber + dbgSuffix;
|
||||
if (AppVeyor.Environment.PullRequest.IsPullRequest)
|
||||
packageVersion += "-PR-" + AppVeyor.Environment.PullRequest.Number;
|
||||
else
|
||||
packageVersion += "-" + AppVeyor.Environment.Repository.Branch;
|
||||
}
|
||||
|
||||
AppVeyor.UpdateBuildVersion(packageVersion);
|
||||
}
|
||||
|
||||
var packageName = "NUnit3TestAdapter-" + packageVersion;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// DEFINE RUN CONSTANTS
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Directories
|
||||
var PROJECT_DIR = Context.Environment.WorkingDirectory.FullPath + "/";
|
||||
var PACKAGE_DIR = PROJECT_DIR + "package/";
|
||||
var PACKAGE_IMAGE_DIR = PACKAGE_DIR + packageName + "/";
|
||||
var TOOLS_DIR = PROJECT_DIR + "tools/";
|
||||
var BIN_DIR = PROJECT_DIR + "bin/" + configuration + "/";
|
||||
|
||||
// Solutions
|
||||
var SOLUTION_FILE = PROJECT_DIR + "teamcity-event-listener.sln";
|
||||
|
||||
// Test Runner
|
||||
var NUNIT3_CONSOLE = TOOLS_DIR + "NUnit.ConsoleRunner/tools/nunit3-console.exe";
|
||||
|
||||
// Test Assemblies
|
||||
var TEST_ASSEMBLY = BIN_DIR + "NUnit.VisualStudio.TestAdapter.Tests.dll";
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// CLEAN
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
Task("Clean")
|
||||
.Does(() =>
|
||||
{
|
||||
CleanDirectory(BIN_DIR);
|
||||
});
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// INITIALIZE FOR BUILD
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
Task("NuGetRestore")
|
||||
.Does(() =>
|
||||
{
|
||||
NuGetRestore(SOLUTION_FILE);
|
||||
});
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// BUILD
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
Task("Build")
|
||||
.IsDependentOn("NuGetRestore")
|
||||
.Does(() =>
|
||||
{
|
||||
BuildSolution(SOLUTION_FILE, configuration);
|
||||
});
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// TEST
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
Task("Test")
|
||||
.IsDependentOn("Build")
|
||||
.Does(() =>
|
||||
{
|
||||
int rc = StartProcess(
|
||||
NUNIT3_CONSOLE,
|
||||
new ProcessSettings()
|
||||
{
|
||||
Arguments = TEST_ASSEMBLY
|
||||
});
|
||||
|
||||
if (rc != 0)
|
||||
{
|
||||
var message = rc > 0
|
||||
? string.Format("Test failure: {0} tests failed", rc)
|
||||
: string.Format("Test exited with rc = {0}", rc);
|
||||
|
||||
throw new CakeException(message);
|
||||
}
|
||||
});
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// PACKAGE
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
Task("CreatePackageDir")
|
||||
.Does(() =>
|
||||
{
|
||||
CreateDirectory(PACKAGE_DIR);
|
||||
});
|
||||
|
||||
Task("CreateWorkingImage")
|
||||
.IsDependentOn("Build")
|
||||
.IsDependentOn("CreatePackageDir")
|
||||
.Does(() =>
|
||||
{
|
||||
CreateDirectory(PACKAGE_IMAGE_DIR);
|
||||
CleanDirectory(PACKAGE_IMAGE_DIR);
|
||||
|
||||
CopyFileToDirectory("LICENSE.txt", PACKAGE_IMAGE_DIR);
|
||||
|
||||
var binFiles = new FilePath[]
|
||||
{
|
||||
BIN_DIR + "teamcity-event-listener.dll",
|
||||
BIN_DIR + "nunit.engine.api.dll"
|
||||
};
|
||||
|
||||
var binDir = PACKAGE_IMAGE_DIR + "bin/";
|
||||
CreateDirectory(binDir);
|
||||
CopyFiles(binFiles, binDir);
|
||||
});
|
||||
|
||||
Task("Package")
|
||||
.IsDependentOn("CreateWorkingImage")
|
||||
.Does(() =>
|
||||
{
|
||||
NuGetPack("teamcity-event-listener.nuspec", new NuGetPackSettings()
|
||||
{
|
||||
Version = packageVersion,
|
||||
BasePath = BIN_DIR,
|
||||
OutputDirectory = PACKAGE_DIR
|
||||
});
|
||||
});
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// HELPER METHODS
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
void BuildSolution(string solutionPath, string configuration)
|
||||
{
|
||||
MSBuild(solutionPath, new MSBuildSettings()
|
||||
.SetConfiguration(configuration)
|
||||
.SetMSBuildPlatform(MSBuildPlatform.x86)
|
||||
.SetVerbosity(Verbosity.Minimal)
|
||||
.SetNodeReuse(false)
|
||||
);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// TASK TARGETS
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
Task("Rebuild")
|
||||
.IsDependentOn("Clean")
|
||||
.IsDependentOn("Build");
|
||||
|
||||
Task("Appveyor")
|
||||
.IsDependentOn("Build")
|
||||
.IsDependentOn("Test")
|
||||
.IsDependentOn("Package");
|
||||
|
||||
Task("Default")
|
||||
.IsDependentOn("Build");
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// EXECUTION
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
RunTarget(target);
|
|
@ -0,0 +1,2 @@
|
|||
@echo off
|
||||
powershell ./build.ps1 %CAKE_ARGS% %*
|
|
@ -0,0 +1,55 @@
|
|||
Param(
|
||||
[string]$Script = "build.cake",
|
||||
[string]$Target = "Default",
|
||||
[ValidateSet("Release", "Debug")]
|
||||
[string]$Configuration = "Release",
|
||||
[ValidateSet("Quiet", "Minimal", "Normal", "Verbose", "Diagnostic")]
|
||||
[string]$Verbosity = "Verbose",
|
||||
[switch]$Experimental,
|
||||
[switch]$WhatIf
|
||||
)
|
||||
|
||||
$TOOLS_DIR = Join-Path $PSScriptRoot "tools"
|
||||
$NUGET_EXE = Join-Path $TOOLS_DIR "nuget.exe"
|
||||
$CAKE_EXE = Join-Path $TOOLS_DIR "Cake/Cake.exe"
|
||||
|
||||
# Should we use experimental build of Roslyn?
|
||||
$UseExperimental = "";
|
||||
if($Experimental.IsPresent) {
|
||||
$UseExperimental = "-experimental"
|
||||
}
|
||||
|
||||
# Is this a dry run?
|
||||
$UseDryRun = "";
|
||||
if($WhatIf.IsPresent) {
|
||||
$UseDryRun = "-dryrun"
|
||||
}
|
||||
|
||||
# Try download NuGet.exe if do not exist.
|
||||
if (!(Test-Path $NUGET_EXE)) {
|
||||
Invoke-WebRequest -Uri http://nuget.org/nuget.exe -OutFile $NUGET_EXE
|
||||
}
|
||||
|
||||
# Make sure NuGet exists where we expect it.
|
||||
if (!(Test-Path $NUGET_EXE)) {
|
||||
Throw "Could not find NuGet.exe"
|
||||
}
|
||||
|
||||
# Restore tools from NuGet.
|
||||
Push-Location
|
||||
Set-Location $TOOLS_DIR
|
||||
Invoke-Expression "$NUGET_EXE install -ExcludeVersion"
|
||||
Pop-Location
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
# Make sure that Cake has been installed.
|
||||
if (!(Test-Path $CAKE_EXE)) {
|
||||
Throw "Could not find Cake.exe"
|
||||
}
|
||||
|
||||
# Start Cake
|
||||
Invoke-Expression "$CAKE_EXE `"$Script`" -target=`"$Target`" -configuration=`"$Configuration`" -verbosity=`"$Verbosity`" $UseDryRun $UseExperimental"
|
||||
Write-Host
|
||||
exit $LASTEXITCODE
|
|
@ -0,0 +1,65 @@
|
|||
#!/bin/bash
|
||||
###############################################################
|
||||
# This is the Cake bootstrapper script that is responsible for
|
||||
# downloading Cake and all specified tools from NuGet.
|
||||
###############################################################
|
||||
|
||||
# Define directories.
|
||||
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
TOOLS_DIR=$SCRIPT_DIR/tools
|
||||
NUGET_EXE=$TOOLS_DIR/nuget.exe
|
||||
CAKE_EXE=$TOOLS_DIR/Cake/Cake.exe
|
||||
|
||||
# Define default arguments.
|
||||
SCRIPT="build.cake"
|
||||
TARGET="Default"
|
||||
CONFIGURATION="Release"
|
||||
VERBOSITY="verbose"
|
||||
DRYRUN=false
|
||||
SHOW_VERSION=false
|
||||
|
||||
# Parse arguments.
|
||||
for i in "$@"; do
|
||||
case $1 in
|
||||
-s|--script) SCRIPT="$2"; shift ;;
|
||||
-t|--target) TARGET="$2"; shift ;;
|
||||
-c|--configuration) CONFIGURATION="$2"; shift ;;
|
||||
-v|--verbosity) VERBOSITY="$2"; shift ;;
|
||||
-d|--dryrun) DRYRUN=true ;;
|
||||
--version) SHOW_VERSION=true ;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
# Download NuGet if it does not exist.
|
||||
if [ ! -f $NUGET_EXE ]; then
|
||||
echo "Downloading NuGet..."
|
||||
curl -Lsfo $NUGET_EXE https://www.nuget.org/nuget.exe
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "An error occured while downloading nuget.exe."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Restore tools from NuGet.
|
||||
pushd $TOOLS_DIR >/dev/null
|
||||
mono $NUGET_EXE install -ExcludeVersion
|
||||
popd >/dev/null
|
||||
|
||||
# Make sure that Cake has been installed.
|
||||
if [ ! -f $CAKE_EXE ]; then
|
||||
echo "Could not find Cake.exe."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Start Cake
|
||||
if $SHOW_VERSION; then
|
||||
mono $CAKE_EXE -version
|
||||
elif $DRYRUN; then
|
||||
mono $CAKE_EXE $SCRIPT -verbosity=$VERBOSITY -configuration=$CONFIGURATION -target=$TARGET -dryrun
|
||||
else
|
||||
mono $CAKE_EXE $SCRIPT -verbosity=$VERBOSITY -configuration=$CONFIGURATION -target=$TARGET
|
||||
fi
|
||||
|
||||
exit $?
|
||||
|
|
@ -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.
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\..\..\bin\Debug\addins\</OutputPath>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
|
@ -25,7 +25,7 @@
|
|||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>..\..\..\..\bin\Release\addins\</OutputPath>
|
||||
<OutputPath>..\..\bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
|
@ -48,6 +48,11 @@
|
|||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="LICENSE.txt">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<OutputPath>..\..\bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
|
@ -24,7 +24,7 @@
|
|||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<OutputPath>..\..\bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>NUnit.Extension.TeamCityEventListener</id>
|
||||
<title>NUnit 3 - Team City Event Listener 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 Team City Event Listener extension for TeamCity.</summary>
|
||||
<description>This extension sends specially formatted messages about test progress to TeamCity as each test executes, allowing TeamCity to monitor progress.</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="teamcity-event-listener.dll" target="tools"/>
|
||||
</files>
|
||||
</package>
|
|
@ -7,6 +7,17 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "teamcity-event-listener", "
|
|||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "teamcity-event-listener.tests", "src\tests\teamcity-event-listener.tests.csproj", "{709AFF60-B15E-43D5-830A-F22E4701D8B8}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{828491EC-E436-440F-8D30-90C9ABE5CB0C}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
.travis.yml = .travis.yml
|
||||
appveyor.yml = appveyor.yml
|
||||
build = build
|
||||
build.cake = build.cake
|
||||
build.cmd = build.cmd
|
||||
build.ps1 = build.ps1
|
||||
build.sh = build.sh
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -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.
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
NUnit 3.0 is based on earlier versions of NUnit, with Portions
|
||||
|
||||
Copyright (c) 2002-2014 Charlie Poole or
|
||||
Copyright (c) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov or
|
||||
Copyright (c) 2000-2002 Philip A. Craig
|
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<!--
|
||||
Nunit-agent only runs under .NET 2.0 or higher.
|
||||
The setting useLegacyV2RuntimeActivationPolicy only applies
|
||||
under .NET 4.0 and permits use of mixed mode assemblies,
|
||||
which would otherwise not load correctly.
|
||||
-->
|
||||
<startup useLegacyV2RuntimeActivationPolicy="true">
|
||||
<!--
|
||||
Nunit-agent is normally run by the console or gui
|
||||
runners and not independently. In normal usage,
|
||||
the runner specifies which runtime should be used.
|
||||
|
||||
Do NOT add any supportedRuntime elements here,
|
||||
since they may prevent the runner from controlling
|
||||
the runtime that is used!
|
||||
-->
|
||||
</startup>
|
||||
|
||||
<runtime>
|
||||
<!-- Ensure that test exceptions don't crash NUnit -->
|
||||
<legacyUnhandledExceptionPolicy enabled="1" />
|
||||
|
||||
<!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
|
||||
<loadFromRemoteSources enabled="true" />
|
||||
|
||||
</runtime>
|
||||
|
||||
</configuration>
|
Двоичный файл не отображается.
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<!--
|
||||
Nunit-agent only runs under .NET 2.0 or higher.
|
||||
The setting useLegacyV2RuntimeActivationPolicy only applies
|
||||
under .NET 4.0 and permits use of mixed mode assemblies,
|
||||
which would otherwise not load correctly.
|
||||
-->
|
||||
<startup useLegacyV2RuntimeActivationPolicy="true">
|
||||
<!--
|
||||
Nunit-agent is normally run by the console or gui
|
||||
runners and not independently. In normal usage,
|
||||
the runner specifies which runtime should be used.
|
||||
|
||||
Do NOT add any supportedRuntime elements here,
|
||||
since they may prevent the runner from controlling
|
||||
the runtime that is used!
|
||||
-->
|
||||
</startup>
|
||||
|
||||
<runtime>
|
||||
<!-- Ensure that test exceptions don't crash NUnit -->
|
||||
<legacyUnhandledExceptionPolicy enabled="1" />
|
||||
|
||||
<!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
|
||||
<loadFromRemoteSources enabled="true" />
|
||||
|
||||
</runtime>
|
||||
|
||||
</configuration>
|
Двоичный файл не отображается.
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Двоичный файл не отображается.
|
@ -0,0 +1,2 @@
|
|||
../../NUnit.Extension.*/**/tools/ # nuget v2 layout
|
||||
../../../NUnit.Extension.*/**/tools/ # nuget v3 layout
|
Двоичный файл не отображается.
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<!--
|
||||
The console runner runs under .NET 2.0 or higher.
|
||||
The setting useLegacyV2RuntimeActivationPolicy only applies
|
||||
under .NET 4.0 and permits use of mixed mode assemblies,
|
||||
which would otherwise not load correctly.
|
||||
-->
|
||||
<startup useLegacyV2RuntimeActivationPolicy="true">
|
||||
<supportedRuntime version="v4.0.30319" />
|
||||
<supportedRuntime version="v2.0.50727" />
|
||||
</startup>
|
||||
|
||||
<runtime>
|
||||
|
||||
<!-- Ensure that test exceptions don't crash NUnit -->
|
||||
<legacyUnhandledExceptionPolicy enabled="1" />
|
||||
|
||||
<!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
|
||||
<loadFromRemoteSources enabled="true" />
|
||||
|
||||
</runtime>
|
||||
|
||||
</configuration>
|
Двоичный файл не отображается.
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Cake" version="0.13" />
|
||||
</packages>
|
Загрузка…
Ссылка в новой задаче