fix CI
This commit is contained in:
@@ -50,10 +50,15 @@ trap teardown EXIT
|
|||||||
trap 'exit 130' INT
|
trap 'exit 130' INT
|
||||||
trap 'exit 143' TERM
|
trap 'exit 143' TERM
|
||||||
|
|
||||||
|
# Build vibe-app explicitly: `run --build integration-test` only builds the named service
|
||||||
|
# (not its dependencies), and integration-test is image-only, so compose hands bake an
|
||||||
|
# empty definition ("failed to find target default") and vibe-app never gets built or started.
|
||||||
|
"${compose[@]}" --ansi never --progress plain build vibe-app
|
||||||
|
|
||||||
# `run` returns the test container's own exit code; `up --abort-on-container-exit` can leak
|
# `run` returns the test container's own exit code; `up --abort-on-container-exit` can leak
|
||||||
# the app's SIGTERM exit (143) during teardown instead.
|
# the app's SIGTERM exit (143) during teardown instead.
|
||||||
status=0
|
status=0
|
||||||
"${compose[@]}" --ansi never --progress plain run --build --rm integration-test || status=$?
|
"${compose[@]}" --ansi never run --rm integration-test || status=$?
|
||||||
|
|
||||||
if [[ -n "${COVERAGE:-}" ]]; then
|
if [[ -n "${COVERAGE:-}" ]]; then
|
||||||
# SIGTERM is what makes Cloverage write its report, so stop (not kill) the app and pull
|
# SIGTERM is what makes Cloverage write its report, so stop (not kill) the app and pull
|
||||||
|
|||||||
Reference in New Issue
Block a user