1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2024-11-26 19:01:09 +00:00
This commit is contained in:
Felix Ableitner 2024-01-26 13:01:13 +01:00
parent 64e15aa879
commit 8373055a5a

View file

@ -8,15 +8,13 @@ steps:
LEMMY_DATABASE_URL: postgres://ibis:password@database:5432/ibis LEMMY_DATABASE_URL: postgres://ibis:password@database:5432/ibis
CARGO_HOME: .cargo_home CARGO_HOME: .cargo_home
commands: commands:
- which cargo
- apt-get update - apt-get update
- apt-get install postgresql sudo -y --no-install-recommends --no-install-suggests - apt-get install postgresql sudo -y --no-install-recommends --no-install-suggests
- adduser testuser - adduser testuser
- cp -r /usr/local/cargo/bin . - cp ~/.cargo /home/testuser -r
- chown testuser:testuser . -R - chown testuser:testuser . -R
- pwd - chown testuser:testuser /home/testuser -R
- export PATH="/usr/lib/postgresql/15/bin:/usr/local/cargo/bin:$PATH" - export PATH="/usr/lib/postgresql/15/bin:/usr/local/cargo/bin:$PATH"
- ls -la bin
- sudo -u testuser env "PATH=$PATH" env | /bin/grep PATH - sudo -u testuser env "PATH=$PATH" env | /bin/grep PATH
- sudo -u testuser env "PATH=$PATH" cargo test --no-fail-fast - sudo -u testuser env "PATH=$PATH" cargo test --no-fail-fast