added unit tests into build

pull/3895/head
Jamie Rees 6 years ago
parent f88d8cf3ca
commit 7718cdf11c

@ -22,11 +22,11 @@ build_script:
- ps: ./build.ps1 --settings_skipverification=true
# - dotnet sonarscanner end /d:sonar.login="%sonarrcloudtoken%"
test:
#test:
# only assemblies to test
assemblies:
only:
- '**\*.Tests.dll'
#assemblies:
#only:
# - '**\*.Tests.dll'
after_build:

@ -156,6 +156,7 @@ Task("Package")
});
Task("Publish")
.IsDependentOn("Run-Unit-Tests")
.IsDependentOn("PrePublish")
.IsDependentOn("Publish-Windows")
.IsDependentOn("Publish-Windows-32bit")
@ -251,7 +252,7 @@ Task("Publish-Linux-ARM-64Bit")
Task("Run-Unit-Tests")
.Does(() =>
{
DotNetCoreBuild(csProj, buildSettings);
DotNetCoreTest(projDir);
});
//////////////////////////////////////////////////////////////////////
// TASK TARGETS

Loading…
Cancel
Save