forked from create-go-app/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 671 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (21 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.PHONY: clean test security install build release
clean:
rm -rf ./tmp coverage.out
test: clean
go test -coverprofile=coverage.out ./...
go tool cover -func=coverage.out
lint:
golangci-lint run
security:
gosec -quiet ./...
install: security lint test
CGO_ENABLED=0 go build -ldflags="-s -w" -o $(GOPATH)/bin/cgapp ./cmd/cgapp/main.go
build: security test
goreleaser --snapshot --skip-publish --rm-dist
release: security test
git tag -a $(VERSION) -m "$(VERSION)"
goreleaser --snapshot --skip-publish --rm-dist
delete-tag:
git tag --delete $(VERSION)
update-pkg-cache:
curl -i https://proxy.golang.org/github.com/create-go-app/cli/v2/@v/$(VERSION).info