Simon Vieille
59c0342bd7
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
14 lines
393 B
Makefile
14 lines
393 B
Makefile
build: fmt
|
|
CGO_ENABLED=0 go build -ldflags '-s -w' -v -o bin/mugo ./src
|
|
|
|
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"
|