trace2mcp / scripts /verify.ps1
War Enterprise
Release Trace2MCP 0.2.0
d771e01 verified
Raw History Blame Contribute Delete
968 Bytes
$ErrorActionPreference = "Stop"
$projectRoot = Split-Path -Parent $PSScriptRoot
$venvPython = Join-Path $projectRoot ".venv\Scripts\python.exe"
if (-not (Test-Path -LiteralPath $venvPython)) {
python -m venv (Join-Path $projectRoot ".venv")
}
& $venvPython -m pip install --disable-pip-version-check -e "$projectRoot[dev,space,mcp]"
& $venvPython -m pytest -q
& $venvPython -m ruff check $projectRoot
& $venvPython -m mypy (Join-Path $projectRoot "src")
& $venvPython -m trace2mcp --help
& $venvPython -m trace2mcp demo --json | Out-Null
& $venvPython -m compileall -q (Join-Path $projectRoot "src") (Join-Path $projectRoot "app.py")
& $venvPython (Join-Path $PSScriptRoot "smoke.py")
$node = "C:\Users\wwarl\.cache\codex-runtimes\codex-primary-runtime\dependencies\node\bin\node.exe"
if (Test-Path -LiteralPath $node) {
& $node --test (Join-Path $projectRoot "tests\static_compiler.test.mjs")
}
Write-Host "Trace2MCP verification completed successfully."