mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-18 14:47:38 +01:00
13 lines
263 B
Bash
Executable File
13 lines
263 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "mode: set" >>profile.cov
|
|
for dir in $(go list ./... | grep -v -E 'vendor|tests')
|
|
do
|
|
go test -cover -coverprofile=profile.tmp $dir
|
|
if [ -f profile.tmp ]
|
|
then
|
|
cat profile.tmp | tail -n +2 >> profile.cov
|
|
rm profile.tmp
|
|
fi
|
|
done
|