]> Untitled Git - lemmy.git/blob - scripts/test.sh
Upgrade Rust version
[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 # Commenting since this will overwrite schema.rs, which will break things now
9 # diesel migration run
10 # Integration tests only work on stable due to a bug in config-rs
11 # https://github.com/mehcode/config-rs/issues/158
12 RUST_BACKTRACE=1 RUST_TEST_THREADS=1 \
13   cargo test --workspace --no-fail-fast