From 7718cdf11c1f2030a2db0f8cc411a14445ba81d0 Mon Sep 17 00:00:00 2001 From: Jamie Rees Date: Tue, 9 Apr 2019 16:09:02 +0100 Subject: [PATCH] added unit tests into build --- appveyor.yml | 8 ++++---- build.cake | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 9dee828cf..9ab4cafc4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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: diff --git a/build.cake b/build.cake index 299c38688..d9c4601ef 100644 --- a/build.cake +++ b/build.cake @@ -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