mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
afac3ee7ff
* Skip fragile API tests These tests fail very often for no reason, eg in #3712 and #3696. Better to disable them until they can be fixed. * killall -s1
21 lines
540 B
Bash
Executable File
21 lines
540 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
|
|
./api_tests/prepare-drone-federation-test.sh
|
|
popd
|
|
|
|
yarn
|
|
yarn api-test || true
|
|
|
|
killall -s1 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
|