Files
nats-server/travis/coveralls-script.sh

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