diff options
author | Ralph Giles <giles@thaumas.net> | 2021-06-22 21:13:57 -0700 |
---|---|---|
committer | Ralph Giles <giles@thaumas.net> | 2021-06-22 21:13:57 -0700 |
commit | bf9bc9df7af1404f429992e147e710413edc1048 (patch) | |
tree | 5940ffe0640e4825e80ebe83793935a9d3d1fec3 | |
parent | d784f6e1d3f099d8e3b4f72855774272ec296027 (diff) | |
download | flac-bf9bc9df7af1404f429992e147e710413edc1048.tar.gz |
gitlab-ci: Restore tests for the makefile job.
Try building everything as the unprivileged user.
-rw-r--r-- | .gitlab-ci.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4e37f7c9..fef8b921 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,8 +36,12 @@ makefile: before_script: - apt-get update && apt-get install -y libogg-dev + # Create an unpriviledged user, required for tests. + - adduser --disabled-password --gecos "Gitlab CI" flac script: # The makefile doesn't create the `objs` tree it expects to use. - mkdir -p objs/release/lib - mkdir -p objs/release/bin - - make -f Makefile.lite + - chown -R flac objs + - su -c 'make -f Makefile.lite' flac + - su -c 'make -f Makefile.lite test' flac |