mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 21:32:11 +08:00
Testing all packages and generate all coverage report.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
787bff85e5
commit
66f3dcfdad
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ Godeps/*
|
||||
!Godeps/Godeps.json
|
||||
coverage.out
|
||||
count.out
|
||||
.cover
|
||||
|
11
.travis.yml
11
.travis.yml
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user