Fixed makefile

This commit is contained in:
Junpei Tsuji
2020-02-20 13:02:14 +09:00
parent 3c88ce1648
commit a61c519ac8
5 changed files with 19 additions and 12 deletions

View File

@@ -1,15 +1,22 @@
.PHONEY: all setup test cover
.PHONEY: all
all: setup cover
.PHONEY: setup
setup:
go get golang.org/x/tools/cmd/cover
go get google.golang.org/appengine/urlfetch
go get ./...
go get golang.org/x/tools/cmd/cover
go get google.golang.org/appengine/urlfetch
go get ./...
.PHONEY: test
test:
go test -v ./...
go test -v ./...
.PHONEY: cover
cover:
go test -coverprofile=coverage.txt ./...
go test -coverprofile=coverage.txt ./...
.PHONEY: generate
generate:
rm -rf ./appstore/mocks/*
rm -rf ./playstore/mocks/*
go generate ./...