Skip to content

Commit

Permalink
build: circle ci and code analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
alekseizorin committed Sep 8, 2023
1 parent 6236318 commit 4bb537a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@ export GOPROXY=https://proxy.golang.org,off
GOBIN=$(shell pwd)/bin
export PATH := $(GOBIN):$(PATH)

MODULE = $(shell env GO111MODULE=on go list -m)

# allows passing specific tags to go build (for example musl)
ifdef GO_BUILD_TAGS
GO_BUILD_TAGS_ARG += -tags $(GO_BUILD_TAGS)
endif

gocoverstats=$(GOBIN)/gocoverstats
$(gocoverstats):
GOBIN=$(GOBIN) go install $(GO_BUILD_TAGS_ARG) gitlab.com/fgmarand/gocoverstats@latest

.PHONY: test
test: ## Run tests
APP_ENV=test go test -race ./...
Expand Down

0 comments on commit 4bb537a

Please sign in to comment.