Add codecov.io processing with travis-ci integration. (#269)

This fix adds the codecov.io process with travis-ci integration,
so that code coverage could be processed and displayed with codecov.io.

Since go cannot use test profile flag with multiple packages,
we have to iterate through packages with `coverage.sh`.

Some consolidation could be done by combining them into one `make test`.

Will do some consolidation in a follow up PR.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang
2016-09-18 11:01:57 -07:00
committed by GitHub
parent 1decf52cb2
commit 587a347a40
3 changed files with 18 additions and 0 deletions

View File

@@ -46,3 +46,8 @@ script:
- go test -tags etcd -race -bench=. ./...
# Run kubernetes integration tests only if kubectl is available. i.e. If kubernetes was launched
- ./contrib/kubernetes/testscripts/kubectl version && go test -v -tags k8s -race -bench=. -run 'TestK8sIntegration' ./test
# go cannot use test profile flag with multiple packages so we have to iterate, the following might be consolidated with the above steps.
- ./coverage.sh
after_success:
- bash <(curl -s https://codecov.io/bash)