From: John Hodge Date: Mon, 11 Oct 2021 12:10:37 +0000 (+0800) Subject: Gitlab CI - Attempt to create+use a non-root user X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=3c03884844384020aac5a789aa36a1453bf57b78;p=tpg%2Fopendispense2.git Gitlab CI - Attempt to create+use a non-root user --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index da4f6c6..7e86b2c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,6 +27,7 @@ test: stage: test before_script: # Install the -dev versions to avoid needing to find the actual library names - - apt update && apt -y install libncurses-dev libmodbus-dev libsqlite3-dev libident netcat + - apt update && apt -y install libncurses-dev libmodbus-dev libsqlite3-dev libident netcat sqlite3 + - useradd testuser && chown -R testuser . script: - - cd tests && ./TEST_basic.sh + - cd tests && su -l -c './TEST_basic.sh' testuser