From 4af52c34149b58bdca8c3a84ade4c6cbe17c68f9 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Sat, 5 Mar 2022 12:13:46 +0100 Subject: [PATCH] Enable CirrusCI --- .cirrus.yml | 24 ++++++++++++++++++++++++ .idea/vcs.xml | 6 ++++++ 2 files changed, 30 insertions(+) create mode 100644 .cirrus.yml create mode 100644 .idea/vcs.xml diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 0000000..e41f732 --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,24 @@ +container: + image: golang:latest + +env: + GOPROXY: https://proxy.golang.org + +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 github.com/wneessen/go-mail diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file