fix: minor code style fixes in CI

- remove some whitespace
- make synapse deployment non-persistent

Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
This commit is contained in:
TheOneWithTheBraid 2022-12-01 10:09:58 +01:00
parent 5c7966f3a2
commit 224c16e061
3 changed files with 8 additions and 6 deletions

View File

@ -13,6 +13,6 @@ echo "Homeserver is up."
sed -i "s/localhost/$IP_ADDRESS/g" test_driver/test_config.dart sed -i "s/localhost/$IP_ADDRESS/g" test_driver/test_config.dart
curl -XPOST -d '{"username":"alice", "password":"AliceInWonderland", "inhibit_login":true, "auth": {"type":"m.login.dummy"}}' "http://$IP_ADDRESS/_matrix/client/r0/register" curl -fS --retry 3 -XPOST -d '{"username":"alice", "password":"AliceInWonderland", "inhibit_login":true, "auth": {"type":"m.login.dummy"}}' "http://$IP_ADDRESS/_matrix/client/r0/register"
curl -XPOST -d '{"username":"bob", "password":"JoWirSchaffenDas", "inhibit_login":true, "auth": {"type":"m.login.dummy"}}' "http://$IP_ADDRESS/_matrix/client/r0/register" curl -fS --retry 3 -XPOST -d '{"username":"bob", "password":"JoWirSchaffenDas", "inhibit_login":true, "auth": {"type":"m.login.dummy"}}' "http://$IP_ADDRESS/_matrix/client/r0/register"
curl -XPOST -d '{"username":"trudy", "password":"HaveIBeenPwned", "inhibit_login":true, "auth": {"type":"m.login.dummy"}}' "http://$IP_ADDRESS/_matrix/client/r0/register" curl -fS --retry 3 -XPOST -d '{"username":"trudy", "password":"HaveIBeenPwned", "inhibit_login":true, "auth": {"type":"m.login.dummy"}}' "http://$IP_ADDRESS/_matrix/client/r0/register"

View File

@ -10,5 +10,5 @@ docker run --rm --entrypoint="" \
-tls-cert /mnt/server.crt \ -tls-cert /mnt/server.crt \
-tls-key /mnt/server.key -tls-key /mnt/server.key
docker run -d --volume="$(pwd)/test_driver/dendrite/data":/etc/dendrite:rw \ docker run -d --volume="$(pwd)/test_driver/dendrite/data":/etc/dendrite:rw \
--name dendrite -p 80:8008 matrixdotorg/dendrite-monolith:latest -really-enable-open-registration --name dendrite -p 80:8008 matrixdotorg/dendrite-monolith:latest -really-enable-open-registration

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
chown -R 991:991 test_driver/synapse docker run -d --name synapse --tmpfs /data \
docker run -d --name synapse --user 991:991 --volume="$(pwd)/test_driver/synapse/data":/data:rw -p 80:80 matrixdotorg/synapse:latest --volume="$(pwd)/test_driver/synapse/data/homeserver.yaml":/data/homeserver.yaml:rw \
--volume="$(pwd)/test_driver/synapse/data/localhost.log.config":/data/localhost.log.config:rw \
-p 80:80 matrixdotorg/synapse:latest