mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
nuget runner is downloaded using nuget.
This commit is contained in:
parent
cae0ebefc9
commit
1373d34013
13 changed files with 9 additions and 124 deletions
30
build.ps1
30
build.ps1
|
@ -1,11 +1,6 @@
|
|||
param (
|
||||
[switch]$runTests = $false
|
||||
)
|
||||
|
||||
$msBuild = 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe'
|
||||
$outputFolder = '.\_output'
|
||||
$testSearchPattern = '*.Test\bin\x86\Release'
|
||||
$testPackageFolder = '.\_tests\'
|
||||
|
||||
|
||||
Function Build()
|
||||
{
|
||||
|
@ -61,6 +56,10 @@ Function PackageTests()
|
|||
{
|
||||
Write-Host Packaging Tests
|
||||
|
||||
$testPackageFolder = '.\_tests\'
|
||||
|
||||
.\.nuget\NuGet.exe install NUnit.Runners -Version 2.6.1 -Output $testPackageFolder
|
||||
|
||||
if(Test-Path $testPackageFolder)
|
||||
{
|
||||
Remove-Item -Recurse -Force $testPackageFolder -ErrorAction Continue
|
||||
|
@ -80,18 +79,6 @@ Function PackageTests()
|
|||
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()
|
||||
{
|
||||
|
@ -114,9 +101,4 @@ Function CheckExitCode()
|
|||
|
||||
Build
|
||||
RunGrunt
|
||||
PackageTests
|
||||
|
||||
if($runTests)
|
||||
{
|
||||
Nunit
|
||||
}
|
||||
PackageTests
|
Loading…
Add table
Add a link
Reference in a new issue