remove clojure dep for CI
CI / Unit tests (push) Successful in 27s
CI / Integration tests + coverage (push) Failing after 12s

This commit is contained in:
2026-09-19 05:54:32 -09:00
parent 93c4b340e4
commit aa3cfef2b3
7 changed files with 91 additions and 52 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Merge the unit and integration coverage results inside a Babashka container; needs only
# Docker. Inputs and outputs travel via `docker cp` rather than a bind mount. Extra args go
# to script/coverage_report.clj. Output: target/coverage/merged.
set -euo pipefail
cd "$(dirname "$0")/.."
id=$(docker create --security-opt apparmor=unconfined -w / --entrypoint bb \
babashka/babashka:latest script/coverage_report.clj "$@")
trap 'docker rm -f "$id" >/dev/null' EXIT
# The report reads target/coverage/*/lcov.info and, for the HTML, the sources.
tar -c script/coverage_report.clj src integration-test test target/coverage | docker cp - "$id:/"
docker start -a "$id"
rm -rf target/coverage/merged
docker cp "$id:/target/coverage/merged" target/coverage/