2020-07-10 14:16:42 -04:00
|
|
|
#!/bin/sh
|
2020-12-11 09:56:20 -05:00
|
|
|
set -e
|
|
|
|
|
2021-02-04 11:34:58 -05:00
|
|
|
psql -U lemmy -d postgres -c "DROP DATABASE lemmy;"
|
|
|
|
psql -U lemmy -d postgres -c "CREATE DATABASE lemmy;"
|
|
|
|
|
2020-07-10 14:16:42 -04:00
|
|
|
export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
|
2020-12-18 12:25:27 -05:00
|
|
|
# Commenting since this will overwrite schema.rs, which will break things now
|
|
|
|
# diesel migration run
|
2020-11-10 11:11:08 -05: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 \
|
2020-12-18 12:25:27 -05:00
|
|
|
cargo +1.47.0 test --workspace --no-fail-fast
|