lemmy/scripts/test.sh

14 lines
494 B
Bash
Raw Normal View History

#!/bin/sh
set -e
psql -U lemmy -d postgres -c "DROP DATABASE lemmy;"
psql -U lemmy -d postgres -c "CREATE DATABASE lemmy;"
export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
2020-12-18 10:25:27 -07:00
# Commenting since this will overwrite schema.rs, which will break things now
# diesel migration run
2020-11-10 09:11:08 -07:00
# Integration tests only work on stable due to a bug in config-rs
# https://github.com/mehcode/config-rs/issues/158
RUST_BACKTRACE=1 RUST_TEST_THREADS=1 \
2021-03-01 10:46:56 -07:00
cargo test --workspace --no-fail-fast