From d03cac9670988f953bb6c239890176e091cf1ab4 Mon Sep 17 00:00:00 2001 From: V2Ray Date: Sun, 20 Sep 2015 00:43:42 +0200 Subject: [PATCH] Orgnize coverage info --- testing/coverage/coverall | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testing/coverage/coverall b/testing/coverage/coverall index bb39793b..81cf4e99 100755 --- a/testing/coverage/coverall +++ b/testing/coverage/coverall @@ -17,7 +17,7 @@ function test_package { fi } -echo "mode: set" > coverall.out +touch coverall.out test_package "common/net" "common/net" test_package "proxy/socks" "proxy/socks,proxy/socks/protocol" @@ -26,6 +26,10 @@ test_package "proxy/vmess" "common/io,common/net,proxy/vmess,proxy/vmess/protoco test_package "proxy/vmess/protocol" "proxy/vmess/protocol,proxy/vmess/protocol/user" test_package "proxy/vmess/protocol/user" "proxy/vmess/protocol/user" +cat coverall.out | sort -t: -k1 > coverallsorted.out +echo "mode: set" | cat - coverallsorted.out > coverall.out +rm coverallsorted.out + if [ "$FAIL" -eq 0 ]; then $HOME/gopath/bin/goveralls -v -coverprofile=coverall.out -service=travis-ci -repotoken $COVERALLS_TOKEN fi