2023-06-08 19:38:26 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-12-15 13:58:11 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432
|
|
|
|
pushd ..
|
2021-03-01 17:46:56 +00:00
|
|
|
cargo build
|
2020-12-15 13:58:11 +00:00
|
|
|
rm target/lemmy_server || true
|
|
|
|
cp target/debug/lemmy_server target/lemmy_server
|
2023-08-02 16:52:41 +00:00
|
|
|
killall -s1 lemmy_server || true
|
2020-12-15 13:58:11 +00:00
|
|
|
./api_tests/prepare-drone-federation-test.sh
|
|
|
|
popd
|
|
|
|
|
2024-01-29 10:38:39 +00:00
|
|
|
pnpm i
|
2024-03-20 16:10:11 +00:00
|
|
|
pnpm api-test-post || true
|
2020-12-15 13:58:11 +00:00
|
|
|
|
2023-08-02 16:52:41 +00:00
|
|
|
killall -s1 lemmy_server || true
|
2023-11-17 04:43:40 +00:00
|
|
|
killall -s1 pict-rs || true
|
2020-12-15 13:58:11 +00:00
|
|
|
for INSTANCE in lemmy_alpha lemmy_beta lemmy_gamma lemmy_delta lemmy_epsilon; do
|
|
|
|
psql "$LEMMY_DATABASE_URL" -c "DROP DATABASE $INSTANCE"
|
2020-12-17 19:01:33 +00:00
|
|
|
done
|
2023-11-17 04:43:40 +00:00
|
|
|
rm -r /tmp/pictrs
|