mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 19:31:33 +00:00
dbf231865d
* Adding a few more apub tests. * Fixing travis build, adding a get_post function.
28 lines
1 KiB
Bash
Executable file
Vendored
28 lines
1 KiB
Bash
Executable file
Vendored
#!/bin/bash
|
|
set -e
|
|
|
|
# make sure there are no old containers or old data around
|
|
sudo docker-compose down
|
|
sudo rm -rf volumes
|
|
|
|
mkdir -p volumes/pictrs_{alpha,beta,gamma,delta,epsilon}
|
|
sudo chown -R 991:991 volumes/pictrs_{alpha,beta,gamma,delta,epsilon}
|
|
|
|
sudo docker build ../../ --file ../prod/Dockerfile --tag dessalines/lemmy:travis
|
|
|
|
sudo docker-compose up -d
|
|
|
|
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
|
|
while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8570/api/v1/site')" != "200" ]]; do sleep 1; done
|
|
while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8580/api/v1/site')" != "200" ]]; do sleep 1; done
|
|
yarn
|
|
yarn api-test
|
|
popd
|
|
|
|
sudo docker-compose down
|
|
|
|
sudo rm -r volumes/
|