27 lines
1.1 KiB
PowerShell
27 lines
1.1 KiB
PowerShell
param(
|
|
[string] $WorkspaceRoot = $(if ($env:EVE_WORKSPACE_ROOT) { $env:EVE_WORKSPACE_ROOT } else { Split-Path -Parent (Split-Path -Parent $PSScriptRoot) }),
|
|
[string] $OutputDirectory = "artifacts\parity"
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
$repoRoot = Split-Path -Parent $PSScriptRoot
|
|
$env:EVE_WORKSPACE_ROOT = (Resolve-Path $WorkspaceRoot).Path
|
|
$env:EVE_KERNEL_ROOT = Join-Path $env:EVE_WORKSPACE_ROOT "Eve"
|
|
$env:EVE_PARITY_OUTPUT = if ([IO.Path]::IsPathRooted($OutputDirectory)) {
|
|
$OutputDirectory
|
|
} else {
|
|
Join-Path $repoRoot $OutputDirectory
|
|
}
|
|
$env:EVE_CONFORMANCE_OUTPUT = Join-Path $repoRoot "artifacts\conformance"
|
|
|
|
Push-Location $repoRoot
|
|
try {
|
|
node .\tools\conformance\verify-workspace-lock.mjs $env:EVE_WORKSPACE_ROOT
|
|
if ($LASTEXITCODE -ne 0) { throw "Workspace lock verification failed with exit code $LASTEXITCODE." }
|
|
node .\tools\parity\run-parity.mjs
|
|
if ($LASTEXITCODE -ne 0) { throw "Parity runner failed with exit code $LASTEXITCODE." }
|
|
node .\tools\conformance\consume-export.mjs .\artifacts\conformance\latest
|
|
if ($LASTEXITCODE -ne 0) { throw "Conformance consumer failed with exit code $LASTEXITCODE." }
|
|
} finally {
|
|
Pop-Location
|
|
}
|