Skip to content

Commit

Permalink
Makefile: add some spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlindhe committed Jun 21, 2017
1 parent d312eef commit 74b837a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,29 @@ ifdef CIRCLE_ARTIFACTS
endif

all: test cover

fmt:
find . -not -path "./vendor/*" -name '*.go' -type f | sed 's#\(.*\)/.*#\1#' | sort -u | xargs -n1 -I {} bash -c "cd {} && goimports -w *.go && gofmt -w -s -l *.go"

test:
if [ ! -d coverage ]; then mkdir coverage; fi
go test -v ./mpd -race -cover -coverprofile=$(COVERAGEDIR)/mpd.coverprofile

cover:
go tool cover -html=$(COVERAGEDIR)/mpd.coverprofile -o $(COVERAGEDIR)/mpd.html

tc: test cover

coveralls:
gover $(COVERAGEDIR) $(COVERAGEDIR)/coveralls.coverprofile
goveralls -coverprofile=$(COVERAGEDIR)/coveralls.coverprofile -service=circle-ci -repotoken=$(COVERALLS_TOKEN)

clean:
go clean
rm -rf coverage/

examples-live:
go run examples/live.go

examples-ondemand:
go run examples/ondemand.go

0 comments on commit 74b837a

Please sign in to comment.