Commit 33d91585 authored by Piotr Roszatycki's avatar Piotr Roszatycki

ci: run as non-root

parent def22b76
Pipeline #40180 canceled with stage
in 3 minutes and 12 seconds
......@@ -3,17 +3,19 @@ before_script:
- apt-get install debian-archive-keyring
- apt-get update
- apt-get dist-upgrade -y
- apt-get install -y build-essential dpkg-dev debhelper dh-autoreconf fakeroot git-buildpackage libjemalloc-dev
- apt-get install -y build-essential dpkg-dev debhelper dh-autoreconf fakeroot git-buildpackage libjemalloc-dev sudo
- git fetch origin +upstream:upstream
- git fetch origin +pristine-tar:pristine-tar
- useradd -d /builds/root -g users -M -N builder
- chown -R builder:users ..
.test_template: &test_template
script:
- export LC_ALL=C LC_TYPE=C LANG=
- gbp buildpackage --git-builder="debuild --no-lintian -i'^\.git/|^\.gitignore$|^\.gitlab-ci.yml$|^README\.md$' -I" -uc -us
- sudo -H -i -u builder gbp buildpackage --git-builder="debuild --no-lintian -i'^\.git/|^\.gitignore$|^\.gitlab-ci.yml$|^README\.md$' -I" -uc -us
- cat ../*.changes
- debc
- lintian --dont-check-part standards-version --fail-on-warnings --color always --info ../*.changes
- sudo -H -i -u builder debc
- sudo -H -i -u builder lintian --dont-check-part standards-version --fail-on-warnings --color always --info ../*.changes
- dpkg --install ../*.deb
test:buster:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment