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