mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
17 lines
468 B
Bash
Executable File
17 lines
468 B
Bash
Executable File
#!/bin/bash -e
|
|
echo "mode: count" > acc.out
|
|
for Dir in $(find ./* -maxdepth 10 -type d | grep -v test);
|
|
do
|
|
if ls $Dir/*.go &> /dev/null;
|
|
then
|
|
go test -v -covermode=count -coverprofile=profile.out $Dir
|
|
if [ -f profile.out ]
|
|
then
|
|
cat profile.out | grep -v "mode: count" >> acc.out
|
|
fi
|
|
fi
|
|
done
|
|
$HOME/gopath/bin/goveralls -coverprofile=acc.out $COVERALLS
|
|
rm -rf ./profile.out
|
|
rm -rf ./acc.out
|