Files
selfrelease 468c3b5daa feat(phase2): 追更/授权链/跨省复用/终端抽检/CI(F21/F22/F13/F08/K)
- F21 追更: AddEpisodes 追加新集不重新发码; Merkle定位变更集
- F22 授权链: RecordAuthorization + CheckAuthorization(地域/平台/期限), 嵌入注入前核验
- F13 跨省复用: CrossProvinceAdmit 三重校验(MA有效+哈希一致+非黑名单)快速准入
- F08 终端抽检: TerminalVerifySegment 片段校验+断流提示
- K.1 CI: .gitlab-ci.yml(后端构建/测试/前端构建)
- 新增6个API; 16项测试通过; 二期纯代码功能全部完成
- A(真实链)/B(BFF)延后至有环境/三期, MemoryChain接口已就绪可平滑替换
2026-06-14 17:24:56 +08:00

52 lines
944 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# TCS-IPTV CI/CD 流水线(二期 K.1
# 阶段:构建 → 测试 → 前端构建 → 镜像(占位)
stages:
- build
- test
- frontend
variables:
GO_VERSION: "1.23"
# 后端构建
backend-build:
stage: build
image: golang:1.23
script:
- cd tcs-iptv
- go build ./...
rules:
- changes:
- tcs-iptv/**/*
# 后端测试 + 覆盖率
backend-test:
stage: test
image: golang:1.23
services:
- postgres:16-alpine
variables:
POSTGRES_USER: postgres
POSTGRES_DB: tcs_iptv
TCS_TEST_PG_DSN: "postgres://postgres@postgres:5432/tcs_iptv?sslmode=disable"
script:
- cd tcs-iptv
- go vet ./...
- go test ./... -count=1 -cover
rules:
- changes:
- tcs-iptv/**/*
# 前端构建
frontend-build:
stage: frontend
image: node:20
script:
- cd tcs-iptv/web-console
- npm ci
- npm run build
rules:
- changes:
- tcs-iptv/web-console/**/*