2022-12-23 13:28:15 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
# This script is intended to be used inside a docker container for Complement
|
|
|
|
|
|
|
|
if [[ "${COVER}" -eq 1 ]]; then
|
|
|
|
echo "Running with coverage"
|
|
|
|
exec /dendrite/dendrite-monolith-server-cover \
|
|
|
|
--really-enable-open-registration \
|
|
|
|
--tls-cert server.crt \
|
|
|
|
--tls-key server.key \
|
|
|
|
--config dendrite.yaml \
|
|
|
|
-api=${API:-0} \
|
2023-02-03 12:42:35 +00:00
|
|
|
--test.coverprofile=complementcover.log
|
2022-12-23 13:28:15 +00:00
|
|
|
else
|
|
|
|
echo "Not running with coverage"
|
|
|
|
exec /dendrite/dendrite-monolith-server \
|
|
|
|
--really-enable-open-registration \
|
|
|
|
--tls-cert server.crt \
|
|
|
|
--tls-key server.key \
|
|
|
|
--config dendrite.yaml \
|
|
|
|
-api=${API:-0}
|
|
|
|
fi
|