mirror of
https://github.com/Nutomic/ibis.git
synced 2025-01-27 19:15:53 +00:00
pass env
This commit is contained in:
parent
06d0c2da32
commit
f3b04455df
1 changed files with 1 additions and 3 deletions
|
@ -72,7 +72,6 @@ steps:
|
|||
cargo_test:
|
||||
image: *rust_image
|
||||
environment:
|
||||
LEMMY_DATABASE_URL: postgres://ibis:password@database:5432/ibis
|
||||
CARGO_HOME: .cargo_home
|
||||
commands:
|
||||
- apt-get update
|
||||
|
@ -82,9 +81,8 @@ steps:
|
|||
- cp /usr/local/rustup /home/testuser/.rustup -r
|
||||
- chown testuser:testuser . -R
|
||||
- chown testuser:testuser /home/testuser -R
|
||||
- ls -lah .cargo_home
|
||||
- export PATH="/usr/lib/postgresql/15/bin:/usr/local/cargo/bin:$PATH"
|
||||
- sudo -u testuser env "PATH=$PATH" cargo test --no-fail-fast
|
||||
- sudo -u testuser env "PATH=$PATH CARGO_HOME=$CARGO_HOME" cargo test --no-fail-fast
|
||||
|
||||
build_release:
|
||||
image: *rust_image
|
||||
|
|
Loading…
Reference in a new issue