File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 1- GO15VENDOREXPERIMENT := 1
2-
31COVERAGEDIR = coverage
42ifdef CIRCLE_ARTIFACTS
53 COVERAGEDIR = $(CIRCLE_ARTIFACTS )
64endif
75
8- all : build test cover
6+ ifdef VERBOSE
7+ V = -v
8+ else
9+ .SILENT :
10+ endif
11+
912install-deps :
10- glide install
13+ glide install
1114build :
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
1417fmt :
1518 go fmt ./...
1619
1720test : export AWS_ACCESS_KEY_ID := 1
1821test : export AWS_SECRET_ACCESS_KEY := 1
1922test :
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
2225cover :
2326 go tool cover -html=$(COVERAGEDIR ) /remoteconfig.coverprofile -o $(COVERAGEDIR ) /remoteconfig.html
24- tc : test cover
2527coveralls :
2628 gover $(COVERAGEDIR ) $(COVERAGEDIR ) /coveralls.coverprofile
2729 goveralls -coverprofile=$(COVERAGEDIR ) /coveralls.coverprofile -service=circle-ci -repotoken=$(COVERALLS_TOKEN )
You can’t perform that action at this time.
0 commit comments