15 lines
582 B
PowerShell
15 lines
582 B
PowerShell
$ErrorActionPreference = "Stop"
|
|
|
|
# Runs PolicyValidationCliTests using the minimal policy-only solution with graph build disabled.
|
|
|
|
$Root = Split-Path -Parent (Split-Path -Parent $PSCommandPath)
|
|
Set-Location $Root
|
|
|
|
$env:DOTNET_DISABLE_BUILTIN_GRAPH = "1"
|
|
|
|
$solution = "src/Policy/StellaOps.Policy.only.sln"
|
|
|
|
dotnet restore $solution -v minimal
|
|
dotnet build src/Policy/__Tests/StellaOps.Policy.Tests/StellaOps.Policy.Tests.csproj -c Release --no-restore /p:BuildProjectReferences=false
|
|
dotnet test $solution -c Release --no-build --filter FullyQualifiedName~PolicyValidationCliTests
|