From 8c08248418d2a92b6b639d7bf7bc3ab1caa8cf27 Mon Sep 17 00:00:00 2001 From: v2ray Date: Fri, 15 Jan 2016 13:14:08 +0100 Subject: [PATCH] enable json test in travis --- .travis.yml | 2 +- testing/coverage/coverall | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8b56a08ac..b9f815d6a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ before_install: - go get github.com/mattn/goveralls script: - - go test github.com/v2ray/v2ray-core/... + - go test -tags json github.com/v2ray/v2ray-core/... - ./testing/coverage/coverall env: diff --git a/testing/coverage/coverall b/testing/coverage/coverall index 2fd99f44d..c26ba8e43 100755 --- a/testing/coverage/coverall +++ b/testing/coverage/coverall @@ -6,7 +6,7 @@ function test_package { DIR="github.com/v2ray/v2ray-core/$1" DEP=$(go list -f '{{ join .Deps "\n" }}' $DIR | grep v2ray | tr '\n' ',') 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 cat coversingle.out | grep -v "mode: set" >> coverall.out rm coversingle.out