forked from justincampbell/tmux-pomodoro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (20 loc) · 602 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
COVERAGE_FILE := coverage.out
test: acceptance
coverage: unit
go tool cover -html=$(COVERAGE_FILE)
acceptance: build unit
bats test
build: build-dependencies
go build -o bin/pomodoro
build-dependencies:
go get -t
go get golang.org/x/tools/cmd/cover
go get github.com/0xAX/notificator
unit: build-dependencies
go test -coverprofile=$(COVERAGE_FILE) -timeout 25ms
lint: lint-dependencies
gometalinter ./...
lint-dependencies:
go get github.com/alecthomas/gometalinter
gometalinter --install
.PHONY: acceptance build build-dependencies coverage dependencies lint lint-dependencies unit