-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
18 lines (14 loc) · 1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
GOMOD=vendor
bump-version:
perl -i -p -e 's/github.com\/whosonfirst\/go-webhookd\/$(PREVIOUS)/github.com\/whosonfirst\/go-webhookd\/$(NEW)/g' go.mod
perl -i -p -e 's/github.com\/whosonfirst\/go-webhookd\/$(PREVIOUS)/github.com\/whosonfirst\/go-webhookd\/$(NEW)/g' README.md
find . -name '*.go' | xargs perl -i -p -e 's/github.com\/whosonfirst\/go-webhookd\/$(PREVIOUS)/github.com\/whosonfirst\/go-webhookd\/$(NEW)/g'
cli:
go build -mod $(GOMOD) -ldflags="-s -w" -o bin/webhookd cmd/webhookd/main.go
go build -mod $(GOMOD) -ldflags="-s -w" -o bin/webhookd-generate-hook cmd/webhookd-generate-hook/main.go
go build -mod $(GOMOD) -ldflags="-s -w" -o bin/webhookd-flatten-config cmd/webhookd-flatten-config/main.go
go build -mod $(GOMOD) -ldflags="-s -w" -o bin/webhookd-inflate-config cmd/webhookd-inflate-config/main.go
local-scan:
/usr/local/bin/sonar-scanner/bin/sonar-scanner -Dsonar.projectKey=go-webhookd -Dsonar.sources=. -Dsonar.host.url=http://localhost:9000 -Dsonar.login=$(TOKEN)
godoc:
godoc -http=:6060