From 570ccca98faa3feda44264b8275439fa069f8203 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Thu, 12 Jan 2023 00:45:40 +0100 Subject: [PATCH] #98 Set up FreeBSD tests via CirrusCI Since we already used CirrusCI in the beginning, we only need to modify the existing file. --- .cirrus.yml | 38 +++++++++++++++----------------------- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index ade4ba2..bced9b8 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,28 +1,20 @@ # SPDX-FileCopyrightText: 2022 Winni Neessen # -# 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 ./... \ No newline at end of file