-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
51 lines (39 loc) · 819 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
SHELL = /bin/bash
.PHONY: setup
setup:
go get github.com/google/wire/cmd/wire
go get github.com/goreleaser/goreleaser
.PHONY: lint
lint: generate
go vet ./...
goreleaser check
.PHONY: test
test: generate
go test ./...
.PHONY: integration-test
integration-test:
go test -tags=integration ./...
.PHONY: coverage
coverage: generate
go test -race -coverprofile=coverage.txt -covermode=atomic ./...
.PHONY: codecov
codecov: coverage
bash <(curl -s https://codecov.io/bash)
.PHONY: wire
wire:
go generate -tags=wireinject ./...
.PHONY: generate
generate: wire
go generate ./...
.PHONY: build
build: generate
go build
.PHONY: cross-build-snapshot
cross-build:
goreleaser --rm-dist --snapshot
.PHONY: install
install:
go install
.PHONY: circleci
circleci:
circleci build -e GITHUB_TOKEN=$GITHUB_TOKEN