-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
51 lines (36 loc) · 896 Bytes
/
Makefile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.PHONY: gifs
all: gifs
VERSION=v0.2.5
TAPES=$(shell ls doc/vhs/*tape)
gifs: $(TAPES)
for i in $(TAPES); do vhs < $$i; done
docker-lint:
docker run --rm -v $(shell pwd):/app -w /app golangci/golangci-lint:v1.50.1 golangci-lint run -v
lint:
golangci-lint run -v
test:
go test ./...
build:
go generate ./...
go build ./...
docs:
godoc -http=:6060
goreleaser:
goreleaser release --skip=sign --snapshot --clean
tag-major:
git tag $(shell svu major)
tag-minor:
git tag $(shell svu minor)
tag-patch:
git tag $(shell svu patch)
release:
git push --tags
GOPROXY=proxy.golang.org go list -m github.com/go-go-golems/parka@$(shell svu current)
bump-glazed:
go get github.com/go-go-golems/glazed@latest
go get github.com/go-go-golems/clay@latest
go mod tidy
PARKA_BINARY=$(shell which parka)
install:
go build -o ./dist/parka ./cmd/parka && \
cp ./dist/parka $(PARKA_BINARY)