mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
upload test results
This commit is contained in:
parent
781cc31380
commit
6cc6b0abbc
2 changed files with 16 additions and 3 deletions
|
@ -49,6 +49,10 @@ after_build:
|
||||||
|
|
||||||
appveyor PushArtifact "%APPVEYOR_BUILD_FOLDER%\src\Ombi\bin\Release\netcoreapp2.2\linux-arm64.tar.gz"
|
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:
|
#cache:
|
||||||
|
|
11
build.cake
11
build.cake
|
@ -252,7 +252,16 @@ Task("Publish-Linux-ARM-64Bit")
|
||||||
Task("Run-Unit-Tests")
|
Task("Run-Unit-Tests")
|
||||||
.Does(() =>
|
.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
|
// TASK TARGETS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue