X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=.gitlab-ci.yml;h=49af60d7d26a377479e159795063029b41479a6c;hb=45c8529b136d8a78a1f7e6059db3a868b9616fe4;hp=72fc89a01c9eda83665cd75166eaf3f1d1f2393c;hpb=26262e4bd6dd8ce3126957788bb78ee37c0dde39;p=tpg%2Fopendispense2.git diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72fc89a..49af60d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,8 @@ build: # instead of calling g++ directly you can also use some build toolkit like make # install the necessary build tools when needed before_script: - - apt update && apt -y install libncurses-dev libmodbus-dev libsqlite3-dev libident-dev + - apt update + - apt -y install libncurses-dev libmodbus-dev libsqlite3-dev libident-dev script: - make -C src/ artifacts: @@ -27,7 +28,12 @@ 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 sqlite3 oidentd + - apt update && apt -y install libncurses-dev libmodbus-dev libsqlite3-dev libident netcat sqlite3 - useradd testuser && chown -R testuser . + # SETUID on the client, so it can use AUTOAUTH (ident doesn't work on the container) + - chmod u+s dispense script: - cd tests && su -c './TEST_basic.sh' testuser + artifacts: + paths: + - tests/rundir/**