]> Untitled Git - lemmy.git/blob - scripts/test.sh
~80% done
[lemmy.git] / scripts / test.sh
1 #!/bin/sh
2 set -e
3
4 psql -U lemmy -d postgres -c "DROP DATABASE lemmy;"
5 psql -U lemmy -d postgres -c "CREATE DATABASE lemmy;"
6
7 export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
8 RUST_BACKTRACE=1 \
9   cargo test --workspace --no-fail-fast