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