mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-22 13:50:49 +01:00
#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:
parent
1e959a591d
commit
570ccca98f
1 changed files with 15 additions and 23 deletions
38
.cirrus.yml
38
.cirrus.yml
|
@ -1,28 +1,20 @@
|
|||
# SPDX-FileCopyrightText: 2022 Winni Neessen <winni@neessen.dev>
|
||||
#
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
container:
|
||||
image: golang:latest
|
||||
freebsd_task:
|
||||
name: FreeBSD
|
||||
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
matrix:
|
||||
- name: FreeBSD 13.1
|
||||
freebsd_instance:
|
||||
image_family: freebsd-13-1
|
||||
- name: FreeBSD 12.4
|
||||
freebsd_instance:
|
||||
image_family: freebsd-12-4
|
||||
|
||||
lint_task:
|
||||
name: GolangCI Lint
|
||||
container:
|
||||
image: golangci/golangci-lint:latest
|
||||
run_script: golangci-lint run -v --timeout 5m0s --out-format json > lint-report.json
|
||||
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/...
|
||||
pkginstall_script:
|
||||
- pkg update -f
|
||||
- pkg install -y go
|
||||
test_script:
|
||||
- go test -v -race -cover -shuffle=on ./...
|
Loading…
Reference in a new issue