1
0
Fork 0
mirror of https://github.com/LemmyNet/lemmy.git synced 2025-01-25 15:09:19 +00:00
lemmy/test.sh

9 lines
374 B
Bash
Raw Normal View History

#!/bin/sh
export DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
diesel migration run
export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
2020-11-10 17:11:08 +01: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 \
cargo +stable test --workspace --no-fail-fast