2023-06-08 12:38:26 -07:00
|
|
|
#!/usr/bin/env bash
|
2020-12-15 14:58:11 +01:00
|
|
|
set -e
|
|
|
|
|
|
|
|
export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432
|
|
|
|
pushd ..
|
2021-03-01 18:46:56 +01:00
|
|
|
cargo build
|
2020-12-15 14:58:11 +01:00
|
|
|
rm target/lemmy_server || true
|
|
|
|
cp target/debug/lemmy_server target/lemmy_server
|
2023-08-02 18:52:41 +02:00
|
|
|
killall -s1 lemmy_server || true
|
2020-12-15 14:58:11 +01:00
|
|
|
./api_tests/prepare-drone-federation-test.sh
|
|
|
|
popd
|
|
|
|
|
|
|
|
yarn
|
|
|
|
yarn api-test || true
|
|
|
|
|
2023-08-02 18:52:41 +02:00
|
|
|
killall -s1 lemmy_server || true
|
2020-12-15 14:58:11 +01: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 14:01:33 -05:00
|
|
|
done
|