Skip to content

Commit ef74e70

Browse files
committed
makefile yak shaving
1 parent d1c09fe commit ef74e70

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Makefile

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
GO15VENDOREXPERIMENT := 1
2-
31
COVERAGEDIR = coverage
42
ifdef CIRCLE_ARTIFACTS
53
COVERAGEDIR = $(CIRCLE_ARTIFACTS)
64
endif
75

8-
all: build test cover
6+
ifdef VERBOSE
7+
V = -v
8+
else
9+
.SILENT:
10+
endif
11+
912
install-deps:
10-
glide install
13+
glide install
1114
build:
12-
if [ ! -d bin ]; then mkdir bin; fi
13-
go build -v -o bin/go-remote-config
15+
mkdir -p bin
16+
go build $(V) -o bin/go-remote-config
1417
fmt:
1518
go fmt ./...
1619

1720
test: export AWS_ACCESS_KEY_ID := 1
1821
test: export AWS_SECRET_ACCESS_KEY := 1
1922
test:
20-
if [ ! -d coverage ]; then mkdir coverage; fi
21-
go test -v ./ -race -cover -coverprofile=$(COVERAGEDIR)/remoteconfig.coverprofile
23+
mkdir -p coverage
24+
go test $(V) ./ -race -cover -coverprofile=$(COVERAGEDIR)/remoteconfig.coverprofile
2225
cover:
2326
go tool cover -html=$(COVERAGEDIR)/remoteconfig.coverprofile -o $(COVERAGEDIR)/remoteconfig.html
24-
tc: test cover
2527
coveralls:
2628
gover $(COVERAGEDIR) $(COVERAGEDIR)/coveralls.coverprofile
2729
goveralls -coverprofile=$(COVERAGEDIR)/coveralls.coverprofile -service=circle-ci -repotoken=$(COVERALLS_TOKEN)

0 commit comments

Comments
 (0)