mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
upload test results
This commit is contained in:
parent
781cc31380
commit
6cc6b0abbc
2 changed files with 16 additions and 3 deletions
|
@ -48,7 +48,11 @@ after_build:
|
|||
|
||||
|
||||
appveyor PushArtifact "%APPVEYOR_BUILD_FOLDER%\src\Ombi\bin\Release\netcoreapp2.2\linux-arm64.tar.gz"
|
||||
|
||||
|
||||
- ps: >-
|
||||
$wc = New-Object 'System.Net.WebClient'
|
||||
|
||||
$wc.UploadFile("https://ci.appveyor.com/api/testresults/xunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\src\**\TestResults\Test*.trx))
|
||||
|
||||
|
||||
#cache:
|
||||
|
|
13
build.cake
13
build.cake
|
@ -251,8 +251,17 @@ Task("Publish-Linux-ARM-64Bit")
|
|||
|
||||
Task("Run-Unit-Tests")
|
||||
.Does(() =>
|
||||
{
|
||||
DotNetCoreTest(projDir);
|
||||
{
|
||||
var settings = new DotNetCoreTestSettings
|
||||
{
|
||||
ArgumentCustomization = args => args.Append("--logger \"trx;LogFileName=Test.trx\""),
|
||||
Configuration = "Release"
|
||||
};
|
||||
var projectFiles = GetFiles("./**/*Tests.csproj");
|
||||
foreach(var file in projectFiles)
|
||||
{
|
||||
DotNetCoreTest(file.FullPath, settings);
|
||||
}
|
||||
});
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// TASK TARGETS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue