From 3f73916814abc1d7fdb9890476c957a2e494273f3ca1a7319d38552178256144 Mon Sep 17 00:00:00 2001 From: Falco Duersch Date: Tue, 23 Oct 2018 11:08:35 +0200 Subject: [PATCH] Set coverage threshold to 90% --- .travis.yml | 3 ++- Makefile | 11 +++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2041d5f..17c0776 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,5 @@ install: script: - make test - - make coverage + - make coverage_publish + - make coverage_report diff --git a/Makefile b/Makefile index c6b6d7e..3b11581 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,14 @@ test: test_debug: pipenv run python -m pytest -v --trace -coverage: +coverage_publish: pipenv run python -m coveralls -.PHONY: dependencies run debug test test_debug coverage +coverage_report: + pipenv run python -m coverage report --fail-under 90 + +clean: + pipenv run python -m coverage erase + rm -rf .pytest_cache .cache + +.PHONY: dependencies run debug test test_debug coverage_publish coverage_report clean