mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 06:36:14 +00:00
27be1efb74
* Rewrite ban actions * Rewrite delete/remove actions * Rewrite remove/delete community * Rewrite report actions * Rewrite feature/lock post * Rewrite update community actions * Rewrite remaining federation actions * Get rid of PerformCrud trait * clippy
21 lines
580 B
Bash
Executable file
21 lines
580 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432
|
|
export LEMMY_SYNCHRONOUS_FEDERATION=1 # currently this is true in debug by default, but still.
|
|
pushd ..
|
|
cargo build
|
|
rm target/lemmy_server || true
|
|
cp target/debug/lemmy_server target/lemmy_server
|
|
killall -s1 lemmy_server || true
|
|
./api_tests/prepare-drone-federation-test.sh
|
|
popd
|
|
|
|
yarn
|
|
yarn api-test || true
|
|
|
|
killall -s1 lemmy_server || true
|
|
for INSTANCE in lemmy_alpha lemmy_beta lemmy_gamma lemmy_delta lemmy_epsilon; do
|
|
psql "$LEMMY_DATABASE_URL" -c "DROP DATABASE $INSTANCE"
|
|
done
|