mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-16 17:34:00 +00:00
11 lines
436 B
Bash
11 lines
436 B
Bash
|
#!/bin/bash
|
||
|
set -xe
|
||
|
|
||
|
pushd ../../ui
|
||
|
echo "Waiting for Lemmy to start..."
|
||
|
while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8540/api/v1/site')" != "200" ]]; do sleep 1; done
|
||
|
while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8550/api/v1/site')" != "200" ]]; do sleep 1; done
|
||
|
while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8560/api/v1/site')" != "200" ]]; do sleep 1; done
|
||
|
yarn api-test || true
|
||
|
popd
|