#98 Set up FreeBSD tests via CirrusCI

Since we already used CirrusCI in the beginning, we only need to modify the existing file.
This commit is contained in:
Winni Neessen 2023-01-12 00:45:40 +01:00
parent 1e959a591d
commit 570ccca98f
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -1,28 +1,20 @@
# SPDX-FileCopyrightText: 2022 Winni Neessen <winni@neessen.dev> # SPDX-FileCopyrightText: 2022 Winni Neessen <winni@neessen.dev>
# #
# SPDX-License-Identifier: CC0-1.0 # SPDX-License-Identifier: MIT
container: freebsd_task:
image: golang:latest name: FreeBSD
env: matrix:
GOPROXY: https://proxy.golang.org - name: FreeBSD 13.1
freebsd_instance:
image_family: freebsd-13-1
- name: FreeBSD 12.4
freebsd_instance:
image_family: freebsd-12-4
lint_task: pkginstall_script:
name: GolangCI Lint - pkg update -f
container: - pkg install -y go
image: golangci/golangci-lint:latest test_script:
run_script: golangci-lint run -v --timeout 5m0s --out-format json > lint-report.json - go test -v -race -cover -shuffle=on ./...
always:
golangci_artifacts:
path: lint-report.json
type: text/json
format: golangci
build_task:
modules_cache:
fingerprint_script: cat go.sum
folder: $GOPATH/pkg/mod
get_script: go get github.com/wneessen/go-mail
build_script: go build github.com/wneessen/go-mail
test_script: go test -race -v -cover github.com/wneessen/go-mail/...