From 31906681fb4d160ff5366cdfdef92a4f4bb5ee90 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 13 Jul 2016 14:26:10 +0800 Subject: [PATCH] find submodule folder using git list command. Signed-off-by: Bo-Yi Wu --- .gitignore | 4 ++++ go.test.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a0aef9b..bed8b36 100644 --- a/.gitignore +++ b/.gitignore @@ -29,9 +29,13 @@ config.yml bin/* .DS_Store coverage.txt +coverage.xml +report.xml gorush/log/*.log build.tar.gz gorush.tar.gz gorush.db vendor +lint.txt +vet.txt Dockerfile.tmp diff --git a/go.test.sh b/go.test.sh index b5bbe28..eae93e0 100755 --- a/go.test.sh +++ b/go.test.sh @@ -17,7 +17,7 @@ test -z $(which glide) && output "glide command not found" test -f coverage.txt && rm -rf coverage.txt echo "mode: ${coverage_mode}" > coverage.txt -for d in ./storage/boltdb/... ./storage/redis/... ./storage/memory/... ./config/... ./gorush/...; do +for d in $(go list ./... | grep -v vendor); do go test -v -cover -coverprofile=profile.out -covermode=${coverage_mode} $d if [ -f profile.out ]; then sed '1d' profile.out >> coverage.txt