- 将 fetch_openrouter.go 的 summarize() 实现为 PostgreSQL upsert - 新增 -db 参数和 DATABASE_URL 环境变量支持 - 打通 models + model_prices 表的最小可运行链路 - 创建 llm_intelligence 数据库并运行 migration - 前端 Explorer 验证 T-3.2~T-3.5 全部通过 - 日报生成器正常产出 Markdown 和 latest_models.json
23 lines
1.0 KiB
Makefile
23 lines
1.0 KiB
Makefile
.PHONY: build-fetch-openrouter check-fetch-openrouter ci-fetch-openrouter help-fetch-openrouter test-fetch-openrouter
|
|
|
|
test-fetch-openrouter:
|
|
bash $(CURDIR)/scripts/test.sh
|
|
|
|
build-fetch-openrouter: scripts/fetch_openrouter.go
|
|
go build -o /dev/null ./scripts/fetch_openrouter.go
|
|
|
|
ci-fetch-openrouter: build-fetch-openrouter test-fetch-openrouter
|
|
|
|
check-fetch-openrouter: ci-fetch-openrouter
|
|
test -x scripts/test.sh
|
|
test -f scripts/fetch_openrouter.go
|
|
test -f scripts/testdata/openrouter_models_sample.json
|
|
|
|
help-fetch-openrouter:
|
|
@printf "%-29s %s\n" "fetch-openrouter Makefile 入口" ""
|
|
@printf "%-29s %s\n" "make build-fetch-openrouter" "编译采集器(仅构建,无测试)"
|
|
@printf "%-29s %s\n" "make test-fetch-openrouter" "执行单元测试(仅测试,无构建)"
|
|
@printf "%-29s %s\n" "make ci-fetch-openrouter" "构建 + 测试(全链路)"
|
|
@printf "%-29s %s\n" "make check-fetch-openrouter" "CI 检查:构建 + 测试 + 产物验证"
|
|
@printf "%-29s %s\n" "make help-fetch-openrouter" "显示本帮助信息"
|