generated from daniil-berg/boilerplate-py
Add workflows & badges
This commit is contained in:
+23
-2
@@ -1,3 +1,24 @@
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
coverage erase && coverage run -m unittest discover && coverage report
|
||||
# This file is part of asyncio-taskpool.
|
||||
|
||||
# asyncio-taskpool is free software: you can redistribute it and/or modify it under the terms of
|
||||
# version 3.0 of the GNU Lesser General Public License as published by the Free Software Foundation.
|
||||
|
||||
# asyncio-taskpool is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with asyncio-taskpool.
|
||||
# If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
coverage erase && coverage run -m unittest discover 2> /dev/null
|
||||
|
||||
typeset total
|
||||
total=$(coverage report | awk '$1 == "TOTAL" {print $NF}')
|
||||
|
||||
if [[ $total == 100% ]]; then
|
||||
echo $total
|
||||
else
|
||||
coverage report
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user