mirror of
https://github.com/Nutomic/ibis.git
synced 2025-01-10 15:35:48 +00:00
sudo
This commit is contained in:
parent
3f0123d5a1
commit
5ac5b4168f
1 changed files with 12 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue