1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2024-11-22 12:31:08 +00:00

install postgres

This commit is contained in:
Felix Ableitner 2024-01-26 11:28:40 +01:00
parent d5dba46a84
commit 55c71cb3bc
2 changed files with 10 additions and 7 deletions

View file

@ -1,7 +1,9 @@
steps:
variables:
- &rust_image "rust:1.75"
steps:
cargo_fmt:
image: rust:1.75
image: *rust_image
environment:
# store cargo data in repo folder so that it gets cached between steps
CARGO_HOME: .cargo_home
@ -10,7 +12,7 @@ steps:
- cargo fmt -- --check
frontend_wasm_build:
image: rust:1.75
image: *rust_image
environment:
CARGO_HOME: .cargo_home
commands:
@ -28,7 +30,7 @@ steps:
- diff tmp.schema src/backend/database/schema.rs
cargo_clippy:
image: rust:1.75
image: *rust_image
environment:
CARGO_HOME: .cargo_home
commands:
@ -36,12 +38,13 @@ steps:
- cargo clippy --tests --all-targets --all-features
cargo_test:
image: rust:1.75
image: *rust_image
environment:
LEMMY_DATABASE_URL: postgres://ibis:password@database:5432/ibis
RUST_BACKTRACE: "1"
CARGO_HOME: .cargo_home
commands:
- apt install postgresql
- cargo test --no-fail-fast
services:

View file

@ -95,8 +95,8 @@ impl IbisInstance {
spawn(move || {
Command::new("./tests/scripts/start_dev_db.sh")
.arg(&db_path)
.stdout(Stdio::null())
.stderr(Stdio::null())
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
.output()
.unwrap();
})