-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (36 loc) · 1003 Bytes
/
Copy pathMakefile
File metadata and controls
49 lines (36 loc) · 1003 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PACKAGES = $(shell ./scripts/packages.sh)
EXTERNAL_TOOLS = \
github.com/x-motemen/gobump/cmd/gobump \
github.com/Songmu/ghch/cmd/ghch
setup:
@for tool in $(EXTERNAL_TOOLS) ; do \
echo "Installing $$tool" ; \
go install $$tool@latest; \
done
@echo "Installing goreleaser" ; \
go install github.com/goreleaser/goreleaser/v2@latest
test-all: vet lint test
test:
./scripts/test.sh
vet:
go vet $(PACKAGES)
lint:
@if [ -z `which errcheck 2> /dev/null` ]; then \
go get -u github.com/golang/lint/golint; \
fi
echo $(PACKAGES) | xargs -n 1 golint -set_exit_status
errcheck:
@if [ -z `which errcheck 2> /dev/null` ]; then \
go get -u github.com/kisielk/errcheck; \
fi
echo $(PACKAGES) | xargs errcheck -ignoretests
release: bump upload formula tweet
bump: setup
./scripts/bumpup.sh
upload: bump
./scripts/upload.sh
formula: upload
./scripts/formula.sh
tweet: upload
./scripts/tweet.sh
.PHONY: test-all test vet lint setup release bump upload formula tweet