]> ruderich.org/simon Gitweb - safcm/safcm.git/blob - .builds/openbsd.yml
05bb9a78d4a4ba4acfedbab773fba483f7a0c0da
[safcm/safcm.git] / .builds / openbsd.yml
1 image: openbsd/latest
2 packages:
3   - go
4   - gmake
5   - xz
6 tasks:
7   - all: |
8       # OpenBSD 6.8 only ships with Go 1.15
9       curl -O https://ruderich.eu/go-1.16.3-openbsd-amd64.tar.xz
10       xz -d go-1.16.3-openbsd-amd64.tar.xz
11       tar xf go-1.16.3-openbsd-amd64.tar
12       mv go-1.16.3 go
13       #
14       doas ln -sf /usr/local/bin/gmake /usr/bin/make
15       cd safcm
16       # Go does not yet support -race on OpenBSD
17       ./ci/run GOFLAGS= TESTFLAGS=-v
18       # Also run all tests as root (-R and -h conflict on OpenBSD)
19       doas chown -R root:wheel .
20       # Remove $HOME hack once Go 1.16 is available
21       doas /bin/sh -c "HOME=$HOME ./ci/run GOFLAGS= TESTFLAGS=-v"