Orgnize coverage info

pull/27/head
V2Ray 9 years ago
parent b40be74b86
commit d03cac9670

@ -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

Loading…
Cancel
Save