.cirrus.yml: Add task to test on NetBSD.

This commit is contained in:
Qi Xiao 2022-11-10 22:34:42 +00:00
parent d5ea12f28b
commit 50d36e720a

View File

@ -37,6 +37,18 @@ test_task:
pkg install -y curl
curl -L -o go.tar.gz https://go.dev/dl/go$GO_VERSION.freebsd-amd64.tar.gz
tar -C /usr/local -xf go.tar.gz
- name: Test on NetBSD
compute_engine_instance:
image_project: pg-ci-images
image: family/pg-ci-netbsd-vanilla
platform: netbsd
env:
GO_PKG: go118
PATH: /usr/pkg/$GOPKG/bin:$PATH
go_pkg_cache:
fingerprint_key: $GO_PKG
folder: /usr/pkg/$GO_PKG
populate_script: pkgin -y install $GO_PKG
go_version_script: go version
test_script: go test $TEST_FLAG ./...