Files
youle_app_ohos/scripts/ci.sh
T
lanterngamescnandClaude Opus 4.8 dca926df5b M0: 构建/签名/CI(T-M0-03)
- 构建:build-profile 已有 debug/release buildMode,多模块 build 通过
- 签名:本期暂不配(模拟器调试已验证可装可跑);真机/release 时由 DevEco
  自动签名写入 build-profile.signingConfigs
- CI:scripts/ci.sh 平台无关校验脚本(devecocli build debug/release),任何 CI 可调;
  单测运行待 M1 桥引擎单测落地后启用(devecocli 当前无 test 子命令)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 08:05:18 +08:00

31 lines
1.1 KiB
Bash
Raw 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.
#!/usr/bin/env bash
# 平台无关 CI 校验脚本(T-M0-03)。
# 任何 CI 平台(GitHub Actions / GitLab CI / 本地)均可调用,前提是环境已装
# DevEco SDK 与 devecocliPATH 可访问),并已配置好工程依赖。
#
# 用法:
# bash scripts/ci.sh # debug 构建校验(默认)
# bash scripts/ci.sh --release # release 构建校验(需已配 release 签名)
#
# 退出码非 0 表示校验失败,可直接作为 CI gate。
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
MODE="debug"
if [ "${1:-}" = "--release" ]; then
MODE="release"
fi
echo "==> [CI] 多模块构建校验:devecocli build --build-mode ${MODE}"
devecocli build --build-mode "${MODE}"
# 单元测试:当前 devecocli 无 test 子命令;待 M1 桥引擎单测(T-M1-08,
# MessageCodec/HandlerRegistry/BridgeController ≥80% 覆盖)落地并确定运行方式
# (hypium)后,在此启用,例如:
# echo "==> [CI] 单元测试"
# <hypium 本地单测运行命令>
echo "==> [CI] 校验通过 (${MODE})"