From 8373055a5a0b44cf46046f1ba0f6cc2d0cb241a9 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 26 Jan 2024 13:01:13 +0100 Subject: [PATCH] t --- .woodpecker.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index d8875f4..87b860a 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -8,15 +8,13 @@ steps: LEMMY_DATABASE_URL: postgres://ibis:password@database:5432/ibis CARGO_HOME: .cargo_home commands: - - which cargo - apt-get update - apt-get install postgresql sudo -y --no-install-recommends --no-install-suggests - adduser testuser - - cp -r /usr/local/cargo/bin . + - cp ~/.cargo /home/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" - - ls -la bin - sudo -u testuser env "PATH=$PATH" env | /bin/grep PATH - sudo -u testuser env "PATH=$PATH" cargo test --no-fail-fast