mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
CI: Waiting until Synapse is ready
This commit is contained in:
parent
a88a494f7a
commit
5c000b2fee
@ -4,6 +4,11 @@ up:
|
|||||||
before:
|
before:
|
||||||
# Launch the reverse proxy, listening for connections *only* on the local host.
|
# Launch the reverse proxy, listening for connections *only* on the local host.
|
||||||
- docker run --rm --network host --name mjolnir-test-reverse-proxy -p 127.0.0.1:8081:80 -v $MX_TEST_CWD/test/nginx.conf:/etc/nginx/nginx.conf:ro -d nginx
|
- docker run --rm --network host --name mjolnir-test-reverse-proxy -p 127.0.0.1:8081:80 -v $MX_TEST_CWD/test/nginx.conf:/etc/nginx/nginx.conf:ro -d nginx
|
||||||
|
after:
|
||||||
|
# Wait until Synapse is ready
|
||||||
|
- until curl localhost:9999 --stderr /dev/null > /dev/null; do echo "Waiting for Synapse..."; sleep 1s; done
|
||||||
|
- echo "Synapse is ready"
|
||||||
|
|
||||||
run:
|
run:
|
||||||
- yarn test:integration
|
- yarn test:integration
|
||||||
down:
|
down:
|
||||||
|
Loading…
Reference in New Issue
Block a user