fix(ci): materialize rebar test src_dirs in shared test image. Refs EventHub/EventHubBack#36
CI / test (push) Successful in 28m14s
CI / deploy-ift (push) Successful in 7m42s
CI / e2e-ift (push) Failing after 21m40s
CI / deploy-stage (push) Has been skipped
CI / e2e-stage (push) Has been skipped

This commit is contained in:
2026-07-17 19:35:12 +03:00
parent e9d1a13900
commit 2b65a804d3
2 changed files with 25 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
# Replace rebar3 symlinks under _build/.../test with real copies (BusyBox cp -L fails on them).
set -eu
APP_ROOT="${APP_ROOT:-/app}"
DEST="${APP_ROOT}/_build/test/lib/eventhub/test"
mkdir -p "${DEST}"
rm -rf "${DEST}/unit" "${DEST}/api"
cp -a "${APP_ROOT}/test/unit" "${DEST}/unit"
cp -a "${APP_ROOT}/test/api" "${DEST}/api"
# shellcheck disable=SC2086
cp -a ${APP_ROOT}/test/api_*_SUITE.erl "${DEST}/" 2>/dev/null || true
if [ "$#" -gt 0 ]; then
exec "$@"
fi