21 lines
1.0 KiB
PowerShell
21 lines
1.0 KiB
PowerShell
$ErrorActionPreference = "Stop"
|
|
$repoRoot = (Resolve-Path (Join-Path $PSScriptRoot "..\..")).Path
|
|
$sdk = Join-Path $env:LOCALAPPDATA "Lumi\dotnet-sdk-10\dotnet.exe"
|
|
$dotnet = if (Test-Path $sdk) { $sdk } else { (Get-Command dotnet.exe -ErrorAction Stop).Source }
|
|
$node = (Get-Command node.exe -ErrorAction Stop).Source
|
|
Push-Location $repoRoot
|
|
try {
|
|
& $node "plugins/lumi_overlay/tests/verify.js"
|
|
if ($LASTEXITCODE) { throw "Lumi Overlay server verification failed." }
|
|
& $node "plugins/lumi_transcription/tests/verify.js"
|
|
if ($LASTEXITCODE) { throw "Companion capability verification failed." }
|
|
& $dotnet run --project "companion/tests/Lumi.Companion.Core.Tests/Lumi.Companion.Core.Tests.csproj" --configuration Release
|
|
if ($LASTEXITCODE) { throw "Lumi Overlay Companion verification failed." }
|
|
& $dotnet build "companion/Lumi.Companion.sln" --configuration Release
|
|
if ($LASTEXITCODE) { throw "Lumi Companion build failed." }
|
|
Write-Host "Lumi Overlay verification passed." -ForegroundColor Green
|
|
}
|
|
finally {
|
|
Pop-Location
|
|
}
|