git.ucc.asn.au
/
tpg
/
opendispense2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
067245e
)
Gitlab CI - Attempt to create+use a non-root user
author
John Hodge
<
[email protected]
>
Mon, 11 Oct 2021 12:10:37 +0000
(20:10 +0800)
committer
John Hodge
<
[email protected]
>
Mon, 11 Oct 2021 12:33:28 +0000
(20:33 +0800)
.gitlab-ci.yml
patch
|
blob
|
history
diff --git
a/.gitlab-ci.yml
b/.gitlab-ci.yml
index
da4f6c6
..
7e86b2c
100644
(file)
--- 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
UCC
git Repository :: git.ucc.asn.au