From e156f60de4dc1c63c7831f3d339a2ac29e5eb0fb Mon Sep 17 00:00:00 2001 From: v2ray Date: Thu, 4 Feb 2016 17:04:31 +0100 Subject: [PATCH] try codecov.io --- .travis.yml | 6 ++++-- testing/coverage/coverall | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index b9f815d6a..984be48f1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,12 +4,14 @@ go: - 1.5.2 before_install: - - go get github.com/axw/gocov/gocov - go get golang.org/x/tools/cmd/cover - - go get github.com/mattn/goveralls + - go get github.com/onsi/gomega + - go get github.com/osni/ginkgo script: - go test -tags json github.com/v2ray/v2ray-core/... + +after_success: - ./testing/coverage/coverall env: diff --git a/testing/coverage/coverall b/testing/coverage/coverall index c26ba8e43..12f1375a0 100755 --- a/testing/coverage/coverall +++ b/testing/coverage/coverall @@ -28,11 +28,11 @@ for DIR in $(find * -type d -not -path "*.git*"); do done cat coverall.out | sort -t: -k1 | grep -vw "testing" > coverallsorted.out -echo "mode: set" | cat - coverallsorted.out > coverall.out +echo "mode: set" | cat - coverallsorted.out > coverage.txt rm coverallsorted.out if [ "$FAIL" -eq 0 ]; then - $HOME/gopath/bin/goveralls -v -coverprofile=coverall.out -service=travis-ci -repotoken $COVERALLS_TOKEN + bash <(curl -s https://covercov.io/bash) fi rm -f coverall.out