2022-12-23 07:28:15 -06: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"
|
2023-02-14 05:47:47 -06:00
|
|
|
exec /dendrite/dendrite-cover \
|
2022-12-23 07:28:15 -06:00
|
|
|
--really-enable-open-registration \
|
|
|
|
--tls-cert server.crt \
|
|
|
|
--tls-key server.key \
|
|
|
|
--config dendrite.yaml \
|
2023-02-03 06:42:35 -06:00
|
|
|
--test.coverprofile=complementcover.log
|
2022-12-23 07:28:15 -06:00
|
|
|
else
|
|
|
|
echo "Not running with coverage"
|
2023-02-14 05:47:47 -06:00
|
|
|
exec /dendrite/dendrite \
|
2022-12-23 07:28:15 -06:00
|
|
|
--really-enable-open-registration \
|
|
|
|
--tls-cert server.crt \
|
|
|
|
--tls-key server.key \
|
2023-02-14 05:47:47 -06:00
|
|
|
--config dendrite.yaml
|
2022-12-23 07:28:15 -06:00
|
|
|
fi
|