23 lines
802 B
Bash
23 lines
802 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||
|
|
cd "$ROOT_DIR"
|
||
|
|
|
||
|
|
check_contains() {
|
||
|
|
local file="$1"
|
||
|
|
local needle="$2"
|
||
|
|
grep -Fq "$needle" "$file" || {
|
||
|
|
echo "missing in ${file}: ${needle}"
|
||
|
|
exit 1
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
check_contains scripts/verify_phase2.sh 'go build -o /dev/null ./scripts/fetch_openrouter.go'
|
||
|
|
check_contains scripts/verify_phase3.sh 'go build -o /dev/null ./scripts/generate_daily_report.go ./scripts/official_import_signature_audit_query_lib.go'
|
||
|
|
check_contains scripts/verify_phase4.sh 'cd frontend && npm run build'
|
||
|
|
check_contains scripts/verify_phase6.sh 'go build -o /dev/null ./cmd/server'
|
||
|
|
check_contains scripts/verify_phase6.sh 'if go build -o "$SERVER_BIN" ./cmd/server'
|
||
|
|
|
||
|
|
echo "verify_build_coverage_test: PASS"
|