forked from cloudspannerecosystem/memefish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (43 loc) · 999 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: test
test:
@echo
@echo " (x x) < memefish: test"
@echo " /|||\\"
@echo
@echo go test ./pkg/...
@go test -cover \
-coverprofile=cover.out \
-covermode=count \
-coverpkg=github.com/MakeNowJust/memefish/pkg/... \
./pkg/...
@echo go build ./example/... ./tools/...
@go build -o /dev/null ./example/... ./tools/...
.PHONY: lint
lint: bin/golangci-lint
@echo
@echo " (x x) < memefish: lint"
@echo " /|||\\"
@echo
bin/golangci-lint run ./...
.PHONY: docs
docs:
@echo
@echo " (x x) < memefish: docs"
@echo " /|||\\"
@echo
cd docs && hugo
.PHONY: ci
ci: lint test
.PHONY: fmt
fmt:
go fmt ./...
.PHONY: update-result
update-result: bin/richgo
bin/richgo test -v ./pkg/parser/parser_test.go -update
.PHONY: update-mod
update-mod:
go mod tidy
.PHONY: install-dep
install-dep: bin/golangci-lint
bin/golangci-lint:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./bin v1.23.2