From: Simon Ruderich Date: Sun, 18 Apr 2021 07:51:35 +0000 (+0200) Subject: ci: build.sr.ht: run all tests also as root X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=96d2414bf7983cea408097f207c15c18a93b903b;p=safcm%2Fsafcm.git ci: build.sr.ht: run all tests also as root --- diff --git a/.builds/archlinux.yml b/.builds/archlinux.yml index 0269b36..d8ebea7 100644 --- a/.builds/archlinux.yml +++ b/.builds/archlinux.yml @@ -5,3 +5,6 @@ tasks: - all: | cd safcm ./ci/run + # Also run all tests as root + sudo chown -Rh root:root . + sudo ./ci/run diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml index 1a96cb6..e5dba6d 100644 --- a/.builds/freebsd.yml +++ b/.builds/freebsd.yml @@ -7,3 +7,6 @@ tasks: sudo ln -sf /usr/local/bin/gmake /usr/bin/make cd safcm ./ci/run + # Also run all tests as root + sudo chown -Rh root:wheel . + sudo ./ci/run diff --git a/.builds/openbsd.yml b/.builds/openbsd.yml index 6ba273e..7f1d40c 100644 --- a/.builds/openbsd.yml +++ b/.builds/openbsd.yml @@ -15,3 +15,7 @@ tasks: cd safcm # Go does not yet support -race on OpenBSD ./ci/run GOFLAGS= + # Also run all tests as root (-R and -h conflict on OpenBSD) + doas chown -R root:wheel . + # Remove $HOME hack once Go 1.16 is available + doas /bin/sh -c "HOME=$HOME ./ci/run GOFLAGS="