Fixed coverage command

This commit is contained in:
Junpei Tsuji
2018-05-18 11:21:17 +09:00
parent 8c93c4b714
commit d53311131e
3 changed files with 3 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
language: go language: go
go: go:
- 1.9 - 1.10.2
before_install: before_install:
- sudo pip install codecov - sudo pip install codecov
install: install:

View File

@@ -12,10 +12,4 @@ test:
go test -v ./... go test -v ./...
cover: cover:
go test -v -coverprofile=coverage.txt -covermode=count ./appstore go test -coverprofile=coverage.txt ./...
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

View File

@@ -1,7 +1,7 @@
go-iap go-iap
====== ======
![](https://img.shields.io/badge/golang-1.9-blue.svg?style=flat) ![](https://img.shields.io/badge/golang-1.10-blue.svg?style=flat)
[![Build Status](https://travis-ci.org/awa/go-iap.svg?branch=master)](https://travis-ci.org/awa/go-iap) [![Build Status](https://travis-ci.org/awa/go-iap.svg?branch=master)](https://travis-ci.org/awa/go-iap)
[![codecov.io](https://codecov.io/github/awa/go-iap/coverage.svg?branch=master)](https://codecov.io/github/awa/go-iap?branch=master) [![codecov.io](https://codecov.io/github/awa/go-iap/coverage.svg?branch=master)](https://codecov.io/github/awa/go-iap?branch=master)