mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
Publish the unit tests after they run
This commit is contained in:
parent
b98f5607d6
commit
db86de7996
2 changed files with 11 additions and 6 deletions
|
@ -50,12 +50,6 @@ after_build:
|
||||||
Get-ChildItem .\*.gz | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
|
Get-ChildItem .\*.gz | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
|
||||||
}
|
}
|
||||||
|
|
||||||
$wc = New-Object 'System.Net.WebClient'
|
|
||||||
foreach ($name in Resolve-Path .\src\**\TestResults\Test*.trx)
|
|
||||||
{
|
|
||||||
$wc.UploadFile("https://ci.appveyor.com/api/testresults/mstest/$($env:APPVEYOR_JOB_ID)", $name)
|
|
||||||
}
|
|
||||||
|
|
||||||
#cache:
|
#cache:
|
||||||
#- '%USERPROFILE%\.nuget\packages'
|
#- '%USERPROFILE%\.nuget\packages'
|
||||||
deploy:
|
deploy:
|
||||||
|
|
11
build.cake
11
build.cake
|
@ -4,6 +4,7 @@
|
||||||
#addin nuget:?package=Cake.Compression&version=0.2.2
|
#addin nuget:?package=Cake.Compression&version=0.2.2
|
||||||
#addin "Cake.Incubator&version=3.1.0"
|
#addin "Cake.Incubator&version=3.1.0"
|
||||||
#addin nuget:?package=Cake.Yarn&version=0.4.5
|
#addin nuget:?package=Cake.Yarn&version=0.4.5
|
||||||
|
#addin "Cake.Powershell"
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
// ARGUMENTS
|
// ARGUMENTS
|
||||||
|
@ -261,6 +262,16 @@ Task("Run-Unit-Tests")
|
||||||
{
|
{
|
||||||
DotNetCoreTest(file.FullPath, settings);
|
DotNetCoreTest(file.FullPath, settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var script = @"
|
||||||
|
$wc = New-Object 'System.Net.WebClient'
|
||||||
|
foreach ($name in Resolve-Path .\src\**\TestResults\Test*.trx)
|
||||||
|
{
|
||||||
|
$wc.UploadFile("https://ci.appveyor.com/api/testresults/mstest/$($env:APPVEYOR_JOB_ID)", $name)
|
||||||
|
}
|
||||||
|
";
|
||||||
|
// Upload the results
|
||||||
|
StartPowershellScript(script);
|
||||||
});
|
});
|
||||||
|
|
||||||
Task("Run-Server-Build")
|
Task("Run-Server-Build")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue