forked from looplab/eventhorizon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (28 loc) · 790 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
default: services test
test:
go test ./...
.PHONY: test
test_docker:
docker-compose run --rm golang make test
.PHONY: test_docker
cover:
go list -f '{{if len .TestGoFiles}}"go test -coverprofile={{.Dir}}/.coverprofile {{.ImportPath}}"{{end}}' ./... | xargs -L 1 sh -c
.PHONY: cover
publish_cover: cover
go get -d golang.org/x/tools/cmd/cover
go get github.com/modocache/gover
go get github.com/mattn/goveralls
gover
@goveralls -coverprofile=gover.coverprofile -service=travis-ci -repotoken=$(COVERALLS_TOKEN)
.PHONY: publish_cover
services:
docker-compose pull mongo redis gpubsub
docker-compose up -d mongo redis gpubsub
.PHONY: services
stop:
docker-compose down
.PHONY: stop
clean:
@find . -name \.coverprofile -type f -delete
@rm -f gover.coverprofile
.PHONY: clean