famedlysdk/scripts/coverage.sh
Christian Pauly 3e75ecac22 Add scripts
2019-06-09 12:21:46 +02:00

17 lines
272 B
Bash
Executable file

#!/usr/bin/env bash
if [ -d "coverage" ]
then
ls -A ./coverage
if [ -z "$(ls -A ./coverage)" ]; then
exit 0
else
if [ -f "coverage/lcov.info" ]
then
genhtml -o coverage coverage/lcov.info || exit 0
else
exit 0
fi
fi
else
exit 0
fi