mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-27 18:30:31 +00:00
Fixing travis, adding a test.sh script.
This commit is contained in:
parent
80aef61aed
commit
181374d2cc
3 changed files with 7 additions and 4 deletions
2
.travis.yml
vendored
2
.travis.yml
vendored
|
@ -24,7 +24,7 @@ script:
|
|||
- cargo clippy -- -D clippy::style -D clippy::correctness -D clippy::complexity -D clippy::perf
|
||||
- cargo install diesel_cli --no-default-features --features postgres --force
|
||||
- diesel migration run
|
||||
- cargo test
|
||||
- cargo test --workspace
|
||||
env:
|
||||
global:
|
||||
- DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
|
||||
|
|
4
docs/src/contributing_tests.md
vendored
4
docs/src/contributing_tests.md
vendored
|
@ -7,9 +7,7 @@ following commands in the `server` subfolder:
|
|||
|
||||
```bash
|
||||
psql -U lemmy -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;"
|
||||
export DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
|
||||
diesel migration run
|
||||
RUST_TEST_THREADS=1 cargo test --workspace
|
||||
./test.sh
|
||||
```
|
||||
|
||||
### Federation
|
||||
|
|
5
server/test.sh
vendored
Executable file
5
server/test.sh
vendored
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
export DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
|
||||
diesel migration run
|
||||
export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
|
||||
RUST_TEST_THREADS=1 cargo test --workspace
|
Loading…
Reference in a new issue