mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
nuget runner is downloaded using nuget.
This commit is contained in:
parent
cae0ebefc9
commit
1373d34013
Binary file not shown.
@ -1,37 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<!--
|
|
||||||
The .NET 2.0 build of 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" />
|
|
||||||
|
|
||||||
<!-- Look for addins in the addins directory for now -->
|
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
||||||
<probing privatePath="lib;addins"/>
|
|
||||||
</assemblyBinding>
|
|
||||||
|
|
||||||
</runtime>
|
|
||||||
|
|
||||||
</configuration>
|
|
Binary file not shown.
@ -1,37 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<!--
|
|
||||||
The .NET 2.0 build of 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" />
|
|
||||||
|
|
||||||
<!-- Look for addins in the addins directory for now -->
|
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
||||||
<probing privatePath="lib;addins"/>
|
|
||||||
</assemblyBinding>
|
|
||||||
|
|
||||||
</runtime>
|
|
||||||
|
|
||||||
</configuration>
|
|
Binary file not shown.
Binary file not shown.
@ -1,24 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<!--
|
|
||||||
The .NET 2.0 build of the console runner 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">
|
|
||||||
<!-- Comment out the next line to force use of .NET 4.0 -->
|
|
||||||
</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"/>
|
|
||||||
<!-- Look for addins in the addins directory for now -->
|
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
||||||
<probing privatePath="lib;addins"/>
|
|
||||||
</assemblyBinding>
|
|
||||||
</runtime>
|
|
||||||
</configuration>
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
28
build.ps1
28
build.ps1
@ -1,11 +1,6 @@
|
|||||||
param (
|
|
||||||
[switch]$runTests = $false
|
|
||||||
)
|
|
||||||
|
|
||||||
$msBuild = 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe'
|
$msBuild = 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe'
|
||||||
$outputFolder = '.\_output'
|
$outputFolder = '.\_output'
|
||||||
$testSearchPattern = '*.Test\bin\x86\Release'
|
|
||||||
$testPackageFolder = '.\_tests\'
|
|
||||||
|
|
||||||
Function Build()
|
Function Build()
|
||||||
{
|
{
|
||||||
@ -61,6 +56,10 @@ Function PackageTests()
|
|||||||
{
|
{
|
||||||
Write-Host Packaging Tests
|
Write-Host Packaging Tests
|
||||||
|
|
||||||
|
$testPackageFolder = '.\_tests\'
|
||||||
|
|
||||||
|
.\.nuget\NuGet.exe install NUnit.Runners -Version 2.6.1 -Output $testPackageFolder
|
||||||
|
|
||||||
if(Test-Path $testPackageFolder)
|
if(Test-Path $testPackageFolder)
|
||||||
{
|
{
|
||||||
Remove-Item -Recurse -Force $testPackageFolder -ErrorAction Continue
|
Remove-Item -Recurse -Force $testPackageFolder -ErrorAction Continue
|
||||||
@ -80,18 +79,6 @@ Function PackageTests()
|
|||||||
get-childitem $testPackageFolder -File -Filter *log.config | foreach ($_) {remove-item $_.fullname}
|
get-childitem $testPackageFolder -File -Filter *log.config | foreach ($_) {remove-item $_.fullname}
|
||||||
}
|
}
|
||||||
|
|
||||||
Function Nunit()
|
|
||||||
{
|
|
||||||
$testFiles
|
|
||||||
|
|
||||||
get-childitem $testPackageFolder -File -Filter *test.dll | foreach ($_) {
|
|
||||||
$testFiles = $testFiles + $_.FullName + " "
|
|
||||||
}
|
|
||||||
|
|
||||||
$nunitExe = '.\Libraries\nunit\nunit-console-x86.exe ' + $testFiles + ' /process:multiple /noxml'
|
|
||||||
Invoke-Expression $nunitExe
|
|
||||||
CheckExitCode
|
|
||||||
}
|
|
||||||
|
|
||||||
Function RunGrunt()
|
Function RunGrunt()
|
||||||
{
|
{
|
||||||
@ -115,8 +102,3 @@ Function CheckExitCode()
|
|||||||
Build
|
Build
|
||||||
RunGrunt
|
RunGrunt
|
||||||
PackageTests
|
PackageTests
|
||||||
|
|
||||||
if($runTests)
|
|
||||||
{
|
|
||||||
Nunit
|
|
||||||
}
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
NUNIT="./Libraries/nunit/nunit-console-x86.exe"
|
|
||||||
EXCLUDE="/exclude:Windows"
|
EXCLUDE="/exclude:Windows"
|
||||||
TESTDIR="."
|
TESTDIR=.
|
||||||
|
NUNIT=$TESTDIR/NUnit.Runners.2.6.1/tools/nunit-console-x86.exe
|
||||||
|
|
||||||
mono $NUNIT $EXCLUDE /xml:NzbDrone.Libraries.Result.xml $TESTDIR/NzbDrone.Libraries.Test.dll
|
mono $NUNIT $EXCLUDE /xml:NzbDrone.Libraries.Result.xml $TESTDIR/NzbDrone.Libraries.Test.dll
|
||||||
mono $NUNIT $EXCLUDE /xml:NzbDrone.Libraries.Common.Result.xm $TESTDIR/NzbDrone.Common.Test.dll
|
mono $NUNIT $EXCLUDE /xml:NzbDrone.Libraries.Common.Result.xm $TESTDIR/NzbDrone.Common.Test.dll
|
Loading…
Reference in New Issue
Block a user