Testing all packages and generate all coverage report.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-12-11 11:53:26 +08:00
parent 787bff85e5
commit 66f3dcfdad
2 changed files with 10 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ Godeps/*
!Godeps/Godeps.json
coverage.out
count.out
.cover

View File

@ -7,11 +7,18 @@ go:
- 1.7.4
- tip
install:
- wget https://raw.githubusercontent.com/appleboy/golang-testing/master/coverage.sh -O ${GOPATH}/bin/coverage
- chmod +x ${GOPATH}/bin/coverage
# install dependency tools
- coverage tool
script:
- go test -v -covermode=count -coverprofile=coverage.out
- coverage testing
- coverage coverage
after_success:
- bash <(curl -s https://codecov.io/bash)
- bash <(curl -s https://codecov.io/bash) -f .cover/coverage.txt
notifications:
webhooks: