famedlysdk/scripts/coverage.sh

17 lines
272 B
Bash
Raw Normal View History

2019-06-09 10:21:46 +00:00
#!/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