mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-17 14:12:16 +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
|
!Godeps/Godeps.json
|
||||||
coverage.out
|
coverage.out
|
||||||
count.out
|
count.out
|
||||||
|
.cover
|
||||||
|
11
.travis.yml
11
.travis.yml
@ -7,11 +7,18 @@ go:
|
|||||||
- 1.7.4
|
- 1.7.4
|
||||||
- tip
|
- 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:
|
script:
|
||||||
- go test -v -covermode=count -coverprofile=coverage.out
|
- coverage testing
|
||||||
|
- coverage coverage
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- bash <(curl -s https://codecov.io/bash) -f .cover/coverage.txt
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks:
|
webhooks:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user