]> ruderich.org/simon Gitweb - nsscash/nsscash.git/blob - .gitlab-ci.yml
.github: update upstream actions to latest version
[nsscash/nsscash.git] / .gitlab-ci.yml
1 .template-docker: &template-docker
2   before_script:
3     - apt-get update
4     - apt-get install --no-install-recommends --yes golang golang-golang-x-tools build-essential clang git ca-certificates
5   script:
6     # Run as user nobody so CAP_DAC_OVERRIDE is dropped and the tests can
7     # chmod a file 0000 to force "permission denied" errors.
8     - export HOME=/tmp # writable by nobody
9     - chown -R nobody .
10     # Empty TEST_* as -fsanitize doesn't work in a Docker container
11     - runuser -p -u nobody -- ./ci/run TEST_CFLAGS= TEST_LDFLAGS=
12   variables:
13     # The chown to nobody above causes permissions errors in recent Git
14     # versions "fatal: detected dubious ownership in repository [...] To add
15     # an exception for this directory, call: git config --global --add
16     # safe.directory [...]".
17     GIT_STRATEGY: clone
18
19 debian-stable:
20   <<: *template-docker
21   image: debian:stable
22
23 debian-testing:
24   <<: *template-docker
25   image: debian:testing
26
27 debian-sid:
28   <<: *template-docker
29   image: debian:sid