30 lines
1.1 KiB
PowerShell
30 lines
1.1 KiB
PowerShell
# ==============================================================================
|
|
# ChronoGrid P2P - Agent Verification Pipeline
|
|
# Runs compilation and specification alignment checks
|
|
# ==============================================================================
|
|
|
|
$ErrorActionPreference = "Continue"
|
|
|
|
Write-Host "--- RUNNING AGENT VERIFICATION PIPELINE ---" -ForegroundColor Cyan
|
|
|
|
# 1. Check Rust Compilation & Formatting
|
|
Write-Host "1. Testing Rust Crates..." -ForegroundColor Yellow
|
|
Set-Location "$PSScriptRoot\..\crates\chronogrid_core"
|
|
cargo check --quiet
|
|
if ($LASTEXITCODE -ne 0) {
|
|
Write-Host "FAILED: Rust compilation errors detected in chronogrid_core." -ForegroundColor Red
|
|
Exit 1
|
|
}
|
|
|
|
# 2. Check Flutter Code Formatting & Dependencies
|
|
Write-Host "2. Checking Flutter Shell..." -ForegroundColor Yellow
|
|
Set-Location "$PSScriptRoot\..\apps\chronogrid_flutter"
|
|
flutter analyze
|
|
if ($LASTEXITCODE -ne 0) {
|
|
Write-Host "FAILED: Flutter analysis errors detected." -ForegroundColor Red
|
|
Exit 1
|
|
}
|
|
|
|
Write-Host "--- ALL VERIFICATION CHECKS PASSED SUCCESSFULLY ---" -ForegroundColor Green
|
|
Exit 0
|