2026-10-22 16:49:25 +08:00
|
|
|
$ErrorActionPreference = 'Stop'
|
|
|
|
|
Set-Location (Join-Path $PSScriptRoot '..')
|
|
|
|
|
python -m compileall -q app
|
|
|
|
|
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
2026-10-23 12:31:03 +08:00
|
|
|
python scripts/regression_v821.py --report reports/v821-regression
|
2026-10-22 16:49:25 +08:00
|
|
|
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
|
|
|
|
Get-ChildItem app/static -Filter *.js | ForEach-Object {
|
|
|
|
|
node --check $_.FullName
|
|
|
|
|
if ($LASTEXITCODE -ne 0) { throw "JavaScript syntax error: $_" }
|
|
|
|
|
}
|
|
|
|
|
if (Get-Command docker -ErrorAction SilentlyContinue) {
|
|
|
|
|
docker compose config --quiet
|
|
|
|
|
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
|
|
|
|
docker compose -f compose.enterprise.yaml config --quiet
|
|
|
|
|
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
|
|
|
|
}
|