Files
go-iap/Makefile

22 lines
544 B
Makefile

.PHONEY: all setup test cover
all: setup cover
setup:
go get golang.org/x/tools/cmd/cover
go get google.golang.org/appengine/urlfetch
go get ./...
test:
go test -v ./...
cover:
go test -v -coverprofile=coverage.txt -covermode=count ./appstore
go test -v -coverprofile=playstore.txt -covermode=count ./playstore
cat playstore.txt | grep -v "mode: count" >> coverage.txt
rm playstore.txt
go test -v -coverprofile=amazon.txt -covermode=count ./amazon
cat amazon.txt | grep -v "mode: count" >> coverage.txt
rm amazon.txt