We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56b9142 commit 52b4cbaCopy full SHA for 52b4cba
Makefile
@@ -1,17 +1,22 @@
1
-GO15VENDOREXPERIMENT := 1
2
COVERAGEDIR = coverage
3
ifdef CIRCLE_ARTIFACTS
4
COVERAGEDIR = $(CIRCLE_ARTIFACTS)
5
endif
6
+ifdef VERBOSE
7
+V = -v
8
+else
9
+.SILENT:
10
+endif
11
+
12
all: test cover
13
14
fmt:
15
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"
16
17
test:
- if [ ! -d coverage ]; then mkdir coverage; fi
- go test -v ./mpd -race -cover -coverprofile=$(COVERAGEDIR)/mpd.coverprofile
18
+ mkdir -p coverage
19
+ go test $(V) ./mpd -race -cover -coverprofile=$(COVERAGEDIR)/mpd.coverprofile
20
21
cover:
22
go tool cover -html=$(COVERAGEDIR)/mpd.coverprofile -o $(COVERAGEDIR)/mpd.html
0 commit comments