mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-27 08:41:57 -06:00
23 lines
628 B
Bash
23 lines
628 B
Bash
|
#!/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} \
|
||
|
--test.coverprofile=integrationcover.log
|
||
|
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
|