-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 715 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 715 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
SRC=$(shell find . -name "*.go")
ifeq (, $(shell which golangci-lint))
$(warning "could not find golangci-lint in $(PATH), run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh")
endif
.PHONY: fmt
all: fmt test
build:
$(info ************ building to ./bin/jira-helper *****************)
go build -o ./bin/jira-helper
test:
$(info ******************** running tests *************************)
go test ./...
coverage:
$(info ******************** checking coverage *********************)
go test -coverprofile="cover.out" ./...
format:
$(info ******************** checking formatting ********************)
@test -z $(shell gofmt -l $(SRC)) || (gofmt -d $(SRC); exit 1)