Publish EUnit/CT HTML reports to ci-reports host.

Refs EventHub/EventHubBack#62
This commit is contained in:
2026-07-27 22:48:35 +03:00
parent cd619db4a2
commit 2bfce06dbf
10 changed files with 361 additions and 4 deletions
+18
View File
@@ -114,8 +114,13 @@ if [[ "${have_image}" -ne 1 ]]; then
.
fi
CT_OUT="${CT_REPORT_DIR:-$(pwd)/ci-out/ct-${STAND}}"
mkdir -p "${CT_OUT}"
set +e
docker run --rm --network=host \
${docker_add_hosts[@]+"${docker_add_hosts[@]}"} \
-v "${CT_OUT}:/app/logs/test/ct" \
-e CT_MODE=remote \
-e "API_HOST=${API_HOST}" \
-e "ADMIN_API_HOST=${ADMIN_API_HOST}" \
@@ -130,5 +135,18 @@ docker run --rm --network=host \
-e "ADMIN_SUPPORT_EMAIL=${ADMIN_SUPPORT_EMAIL:-}" \
-e "ADMIN_SUPPORT_PASSWORD=${ADMIN_SUPPORT_PASSWORD:-}" \
"${IMAGE}"
CT_RC=$?
set -e
if [[ -d "${CT_OUT}" ]] && compgen -G "${CT_OUT}/*" >/dev/null; then
RUN_ID="${GITHUB_RUN_NUMBER:-local}"
mkdir -p /var/eventhub/ci-reports 2>/dev/null || true
bash scripts/publish-ci-report.sh EventHubBack "${RUN_ID}" "e2e-${STAND}" "${CT_OUT}" || true
fi
if [[ "${CT_RC}" -ne 0 ]]; then
echo "=== API CT FAILED (${STAND}) rc=${CT_RC} ===" >&2
exit "${CT_RC}"
fi
echo "=== API CT passed (${STAND}) ==="