mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 18:47:15 -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
11
build.cake
11
build.cake
|
@ -4,6 +4,7 @@
|
|||
#addin nuget:?package=Cake.Compression&version=0.2.2
|
||||
#addin "Cake.Incubator&version=3.1.0"
|
||||
#addin nuget:?package=Cake.Yarn&version=0.4.5
|
||||
#addin "Cake.Powershell"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// ARGUMENTS
|
||||
|
@ -261,6 +262,16 @@ Task("Run-Unit-Tests")
|
|||
{
|
||||
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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue