mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
added unit tests into build
This commit is contained in:
parent
f88d8cf3ca
commit
7718cdf11c
2 changed files with 6 additions and 5 deletions
|
@ -22,11 +22,11 @@ build_script:
|
||||||
- ps: ./build.ps1 --settings_skipverification=true
|
- ps: ./build.ps1 --settings_skipverification=true
|
||||||
# - dotnet sonarscanner end /d:sonar.login="%sonarrcloudtoken%"
|
# - dotnet sonarscanner end /d:sonar.login="%sonarrcloudtoken%"
|
||||||
|
|
||||||
test:
|
#test:
|
||||||
# only assemblies to test
|
# only assemblies to test
|
||||||
assemblies:
|
#assemblies:
|
||||||
only:
|
#only:
|
||||||
- '**\*.Tests.dll'
|
# - '**\*.Tests.dll'
|
||||||
|
|
||||||
|
|
||||||
after_build:
|
after_build:
|
||||||
|
|
|
@ -156,6 +156,7 @@ Task("Package")
|
||||||
});
|
});
|
||||||
|
|
||||||
Task("Publish")
|
Task("Publish")
|
||||||
|
.IsDependentOn("Run-Unit-Tests")
|
||||||
.IsDependentOn("PrePublish")
|
.IsDependentOn("PrePublish")
|
||||||
.IsDependentOn("Publish-Windows")
|
.IsDependentOn("Publish-Windows")
|
||||||
.IsDependentOn("Publish-Windows-32bit")
|
.IsDependentOn("Publish-Windows-32bit")
|
||||||
|
@ -251,7 +252,7 @@ Task("Publish-Linux-ARM-64Bit")
|
||||||
Task("Run-Unit-Tests")
|
Task("Run-Unit-Tests")
|
||||||
.Does(() =>
|
.Does(() =>
|
||||||
{
|
{
|
||||||
DotNetCoreBuild(csProj, buildSettings);
|
DotNetCoreTest(projDir);
|
||||||
});
|
});
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
// TASK TARGETS
|
// TASK TARGETS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue