mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-30 05:56:54 -05:00
enable json test in travis
This commit is contained in:
parent
e5fa96f814
commit
8c08248418
@ -9,7 +9,7 @@ before_install:
|
|||||||
- go get github.com/mattn/goveralls
|
- go get github.com/mattn/goveralls
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go test github.com/v2ray/v2ray-core/...
|
- go test -tags json github.com/v2ray/v2ray-core/...
|
||||||
- ./testing/coverage/coverall
|
- ./testing/coverage/coverall
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
@ -6,7 +6,7 @@ function test_package {
|
|||||||
DIR="github.com/v2ray/v2ray-core/$1"
|
DIR="github.com/v2ray/v2ray-core/$1"
|
||||||
DEP=$(go list -f '{{ join .Deps "\n" }}' $DIR | grep v2ray | tr '\n' ',')
|
DEP=$(go list -f '{{ join .Deps "\n" }}' $DIR | grep v2ray | tr '\n' ',')
|
||||||
DEP=${DEP}$DIR
|
DEP=${DEP}$DIR
|
||||||
go test -coverprofile=coversingle.out -coverpkg=$DEP $DIR || FAIL=1
|
go test -tags json -coverprofile=coversingle.out -coverpkg=$DEP $DIR || FAIL=1
|
||||||
if [ -f coversingle.out ]; then
|
if [ -f coversingle.out ]; then
|
||||||
cat coversingle.out | grep -v "mode: set" >> coverall.out
|
cat coversingle.out | grep -v "mode: set" >> coverall.out
|
||||||
rm coversingle.out
|
rm coversingle.out
|
||||||
|
Loading…
Reference in New Issue
Block a user