2023-06-08 15:38:26 -04:00
|
|
|
#!/usr/bin/env bash
|
2020-12-15 08:58:11 -05:00
|
|
|
set -e
|
|
|
|
|
|
|
|
export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432
|
2023-07-10 06:27:49 -04:00
|
|
|
export LEMMY_SYNCHRONOUS_FEDERATION=1 # currently this is true in debug by default, but still.
|
2020-12-15 08:58:11 -05:00
|
|
|
pushd ..
|
2021-03-01 12:46:56 -05:00
|
|
|
cargo build
|
2020-12-15 08:58:11 -05:00
|
|
|
rm target/lemmy_server || true
|
|
|
|
cp target/debug/lemmy_server target/lemmy_server
|
|
|
|
./api_tests/prepare-drone-federation-test.sh
|
|
|
|
popd
|
|
|
|
|
|
|
|
yarn
|
|
|
|
yarn api-test || true
|
|
|
|
|
|
|
|
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
|