find submodule folder using git list command.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
0c43ad2710
commit
31906681fb
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue