mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
Orgnize coverage info
This commit is contained in:
parent
b40be74b86
commit
d03cac9670
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user