1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2025-01-10 11:45:48 +00:00
This commit is contained in:
Felix Ableitner 2024-01-26 12:29:36 +01:00
parent 3f0123d5a1
commit 5ac5b4168f

View file

@ -2,6 +2,18 @@ variables:
- &rust_image "rust:1.75"
steps:
cargo_test:
image: *rust_image
environment:
LEMMY_DATABASE_URL: postgres://ibis:password@database:5432/ibis
RUST_BACKTRACE: "1"
CARGO_HOME: .cargo_home
commands:
- apt-get update
- apt-get install postgresql sudo -y --no-install-recommends --no-install-suggests
- adduser testuser
- PATH="/usr/lib/postgresql/15/bin:$PATH" sudo -u testuser cargo test --no-fail-fast
cargo_fmt:
image: *rust_image
environment:
@ -37,18 +49,6 @@ steps:
- rustup component add clippy
- cargo clippy --tests --all-targets --all-features
cargo_test:
image: *rust_image
environment:
LEMMY_DATABASE_URL: postgres://ibis:password@database:5432/ibis
RUST_BACKTRACE: "1"
CARGO_HOME: .cargo_home
commands:
- apt-get update
- apt-get install postgresql -y --no-install-recommends --no-install-suggests
- adduser testuser
- PATH="/usr/lib/postgresql/15/bin:$PATH" sudo -u testuser cargo test --no-fail-fast
services:
database:
image: postgres:15.2-alpine