From 4ffaeb85bf69a9661edd2f64675e6a23cfdbdda8 Mon Sep 17 00:00:00 2001 From: selmankoc Date: Fri, 31 Mar 2023 16:58:11 +0300 Subject: [PATCH] fix unit test for pipeline --- nupkg/pack.ps1 | 4 ++-- nupkg/unit_test.ps1 | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/nupkg/pack.ps1 b/nupkg/pack.ps1 index fbe4a864ad..d1eb9d66e7 100644 --- a/nupkg/pack.ps1 +++ b/nupkg/pack.ps1 @@ -23,8 +23,8 @@ foreach($project in $projects) { # Create nuget pack Write-Info "[$i / $projectsCount] - Packing project: $projectName" Set-Location $projectFolder -# dotnet clean - dotnet pack -c Release /maxcpucount + #dotnet clean + dotnet pack -c Release --no-build if (-Not $?) { Write-Error "Packaging failed for the project: $projectName" diff --git a/nupkg/unit_test.ps1 b/nupkg/unit_test.ps1 index 07cdfe3655..d0727c93fd 100644 --- a/nupkg/unit_test.ps1 +++ b/nupkg/unit_test.ps1 @@ -4,7 +4,5 @@ foreach($solution in $solutions) { $solutionFolder = Join-Path $rootFolder $solution Set-Location $solutionFolder - dotnet test --no-build --logger trx - - + dotnet test --configuration Release --logger trx -- /maxcpucount }