find submodule folder using git list command.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-07-13 14:26:10 +08:00
parent 0c43ad2710
commit 31906681fb
2 changed files with 5 additions and 1 deletions

4
.gitignore vendored
View File

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

View File

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