diff options
-rwxr-xr-x | dev.sh | 31 |
1 files changed, 21 insertions, 10 deletions
@@ -12,21 +12,32 @@ covhtml Tee haarakattavuus raportti html muodossa covxml Sama mutta xml muoto (codecov tarvitsee tämän) covff Tee html haarakattavuusraportti ja avaa se firefoxissa all Sama kuin '$0 covff && $0 pylint' -" +" && exit 0 -[ $1 = pytest ] && poetry run pytest -v +[ $1 = pytest ] \ + && poetry run pytest -v \ + && exit 0 -[ $1 = pylint ] && poetry run python3 -m pylint src/miinaharava/ +[ $1 = pylint ] \ + && poetry run python3 -m pylint src/miinaharava/ \ + && exit 0 -[ $1 = covhtml ] && poetry run python3 -m coverage run --branch -m pytest -v \ - && poetry run python3 -m coverage html +[ $1 = covhtml ] \ + && poetry run python3 -m coverage run --branch -m pytest -v \ + && poetry run python3 -m coverage html \ + && exit 0 -[ $1 = covhtml ] && poetry run python3 -m coverage run --branch -m pytest -v \ - && poetry run python3 -m coverage xml +[ $1 = covxml ] \ + && poetry run python3 -m coverage run --branch -m pytest -v \ + && poetry run python3 -m coverage xml \ + && exit 0 -[ $1 = covff ] && poetry run python3 -m coverage run --branch -m pytest -v \ - && poetry run python3 -m coverage html && firefox htmlcov/index.html +[ $1 = covff ] \ + && poetry run python3 -m coverage run --branch -m pytest -v \ + && poetry run python3 -m coverage html \ + && firefox htmlcov/index.html \ [ $1 = all ] && poetry run python3 -m coverage run --branch -m pytest -v \ - && poetry run python3 -m coverage html && firefox htmlcov/index.html \ + && poetry run python3 -m coverage html \ + && firefox htmlcov/index.html \ && poetry run python3 -m pylint src/miinaharava/ |