Skip to content

Commit b3d63b1

Browse files
committed
only dotnet test is needed
1 parent 9081e27 commit b3d63b1

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

Build.ps1

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,10 @@ function Exec
2222
}
2323
}
2424

25-
$artifacts = "..\artifacts"
25+
$artifacts = ".\artifacts"
2626

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

29-
exec { & dotnet clean -c Release }
30-
31-
exec { & dotnet build -c Release }
32-
33-
exec { & dotnet test -c Release --results-directory $artifacts --no-build -l trx --verbosity=normal }
29+
exec { & dotnet test -c Release --results-directory $artifacts -l trx --verbosity=normal }
3430

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

Push.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$scriptName = $MyInvocation.MyCommand.Name
2-
$artifacts = "../artifacts"
2+
$artifacts = "./artifacts"
33

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

0 commit comments

Comments
 (0)