Skip to content

Commit

Permalink
Merge pull request #4197 from AutoMapper/lbargaoanu-patch-1
Browse files Browse the repository at this point in the history
Only dotnet test is needed
  • Loading branch information
jbogard committed Jan 16, 2023
2 parents 9081e27 + b3d63b1 commit 8d027f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions Build.ps1
Expand Up @@ -22,15 +22,10 @@ function Exec
}
}

$artifacts = "..\artifacts"
$artifacts = ".\artifacts"

if(Test-Path $artifacts) { Remove-Item $artifacts -Force -Recurse }

exec { & dotnet clean -c Release }

exec { & dotnet build -c Release }

exec { & dotnet test -c Release --results-directory $artifacts --no-build -l trx --verbosity=normal }
exec { & dotnet test -c Release --results-directory $artifacts -l trx --verbosity=normal }

exec { & dotnet pack .\src\AutoMapper\AutoMapper.csproj -c Release -o $artifacts --no-build }

2 changes: 1 addition & 1 deletion Push.ps1
@@ -1,5 +1,5 @@
$scriptName = $MyInvocation.MyCommand.Name
$artifacts = "../artifacts"
$artifacts = "./artifacts"

if ([string]::IsNullOrEmpty($Env:NUGET_API_KEY)) {
Write-Host "${scriptName}: NUGET_API_KEY is empty or not set. Skipped pushing package(s)."
Expand Down

0 comments on commit 8d027f6

Please sign in to comment.