mu-go/Makefile
2022-08-22 23:51:11 +02:00

14 lines
389 B
Makefile

build: fmt
CGO_ENABLED=0 go build -ldflags '-s -w' -v -o bin/mugo ./
tool-gofumpt:
which golangci-lint > /dev/null 2>&1 || go install mvdan.cc/gofumpt@latest
fmt: tool-gofumpt
gofumpt -w --extra .
.ONESHELL:
run-code-quality-analysis:
export SONAR_TOKEN="$$SONAR_TOKEN_DEBLAN_MU_GO"
sonar-scanner -Dsonar.projectKey=deblan-mu-go -Dsonar.sources=. -Dsonar.host.url="$$SONAR_SERVER"