-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (27 loc) · 789 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
GOBIN = ${shell go env GOPATH}/bin
init::
@go mod download
@go install github.com/onsi/ginkgo/ginkgo
@go install github.com/mattn/goveralls
#@go install github.com/mgechev/revive
test::
@${GOBIN}/ginkgo -p -cover -coverprofile=coverage.out
ci-gha::
${MAKE} init
bzr whoami "Fake Tester <fake@example.com>"
git config --global user.email "fake@example.com"
git config --global user.name "Fake Tester"
echo "[extensions]\nshelve=" > ~/.hgrc
${MAKE} test
@${GOBIN}/goveralls -coverprofile=coverage.out
coverage::
@go tool cover -html=coverage.out
#lint::
# @${GOBIN}/revive --formatter stylish -exclude .vendor ./...
fmt::
@gofmt -s -w *.go cmd
test-publish::
@goreleaser release --snapshot --rm-dist
clean::
@-chmod -R u+w .vendor
@rm -rf dist coverage.out .vendor