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/*
|
bin/*
|
||||||
.DS_Store
|
.DS_Store
|
||||||
coverage.txt
|
coverage.txt
|
||||||
|
coverage.xml
|
||||||
|
report.xml
|
||||||
gorush/log/*.log
|
gorush/log/*.log
|
||||||
build.tar.gz
|
build.tar.gz
|
||||||
gorush.tar.gz
|
gorush.tar.gz
|
||||||
gorush.db
|
gorush.db
|
||||||
vendor
|
vendor
|
||||||
|
lint.txt
|
||||||
|
vet.txt
|
||||||
Dockerfile.tmp
|
Dockerfile.tmp
|
||||||
|
|
|
@ -17,7 +17,7 @@ test -z $(which glide) && output "glide command not found"
|
||||||
test -f coverage.txt && rm -rf coverage.txt
|
test -f coverage.txt && rm -rf coverage.txt
|
||||||
echo "mode: ${coverage_mode}" > 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
|
go test -v -cover -coverprofile=profile.out -covermode=${coverage_mode} $d
|
||||||
if [ -f profile.out ]; then
|
if [ -f profile.out ]; then
|
||||||
sed '1d' profile.out >> coverage.txt
|
sed '1d' profile.out >> coverage.txt
|
||||||
|
|
Loading…
Reference in New Issue