mirror of https://github.com/LemmyNet/lemmy.git
20 lines
441 B
Bash
20 lines
441 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432
|
||
|
|
||
|
pushd ..
|
||
|
cargo +1.47.0 build
|
||
|
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
|
||
|
|
||
|
killall lemmy_server
|
||
|
|
||
|
for INSTANCE in lemmy_alpha lemmy_beta lemmy_gamma lemmy_delta lemmy_epsilon; do
|
||
|
psql "$LEMMY_DATABASE_URL" -c "DROP DATABASE $INSTANCE"
|
||
|
done
|