]> ruderich.org/simon Gitweb - safcm/safcm.git/commitdiff
ci: build.sr.ht: run all tests also as root
authorSimon Ruderich <simon@ruderich.org>
Sun, 18 Apr 2021 07:51:35 +0000 (09:51 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 18 Apr 2021 08:47:03 +0000 (10:47 +0200)
.builds/archlinux.yml
.builds/freebsd.yml
.builds/openbsd.yml

index 0269b366743b2dd0a2968ace63daf20da9b8b45f..d8ebea79af0a1702e0f0840a70749e9139934d37 100644 (file)
@@ -5,3 +5,6 @@ tasks:
   - all: |
       cd safcm
       ./ci/run
+      # Also run all tests as root
+      sudo chown -Rh root:root .
+      sudo ./ci/run
index 1a96cb62a24a33112a7f3d92f1564c2ad6cbb689..e5dba6db9c7d32288bef957579373f7dee46caa5 100644 (file)
@@ -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
index 6ba273e799e9bec8399c4d861490d3e883d51a32..7f1d40c9208e6ea97a15b0135c261d1c09a65e64 100644 (file)
@@ -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="