1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 05:56:54 -05:00

Orgnize coverage info

This commit is contained in:
V2Ray 2015-09-20 00:43:42 +02:00
parent b40be74b86
commit d03cac9670

View File

@ -17,7 +17,7 @@ function test_package {
fi fi
} }
echo "mode: set" > coverall.out touch coverall.out
test_package "common/net" "common/net" test_package "common/net" "common/net"
test_package "proxy/socks" "proxy/socks,proxy/socks/protocol" 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" "proxy/vmess/protocol,proxy/vmess/protocol/user"
test_package "proxy/vmess/protocol/user" "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 if [ "$FAIL" -eq 0 ]; then
$HOME/gopath/bin/goveralls -v -coverprofile=coverall.out -service=travis-ci -repotoken $COVERALLS_TOKEN $HOME/gopath/bin/goveralls -v -coverprofile=coverall.out -service=travis-ci -repotoken $COVERALLS_TOKEN
fi fi