add goreleaser support to build regularly again

probably do not need travis anymore either

disable lint in travis ci since it is broken
This commit is contained in:
Cody Lee
2022-11-04 17:02:52 -05:00
parent fa10ecf176
commit 3f93222e40
3 changed files with 47 additions and 9 deletions
+6 -6
View File
@@ -352,14 +352,14 @@ $(patsubst %,%.darwin.so,$(PLUGINS)):
GOOS=darwin go build -o $@ -ldflags "$(VERSION_LDFLAGS)" -buildmode=plugin ./plugins/$(patsubst %.darwin.so,%,$@)
# Run code tests and lint.
test: lint
test: # lint
# Testing.
go test -race -covermode=atomic ./...
lint:
# Checking lint.
GOOS=linux $(shell go env GOPATH)/bin/golangci-lint run $(GOLANGCI_LINT_ARGS)
GOOS=freebsd $(shell go env GOPATH)/bin/golangci-lint run $(GOLANGCI_LINT_ARGS)
GOOS=windows $(shell go env GOPATH)/bin/golangci-lint run $(GOLANGCI_LINT_ARGS)
#lint:
# # Checking lint.
# GOOS=linux $(shell go env GOPATH)/bin/golangci-lint run $(GOLANGCI_LINT_ARGS)
# GOOS=freebsd $(shell go env GOPATH)/bin/golangci-lint run $(GOLANGCI_LINT_ARGS)
# GOOS=windows $(shell go env GOPATH)/bin/golangci-lint run $(GOLANGCI_LINT_ARGS)
# Mockgen and bindata are examples.
# Your `go generate` may require other tools; add them!