From 9035659f351edc8832ae202b937973141ff16ca6 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Wed, 25 Jun 2014 10:44:09 -0500 Subject: [PATCH] Fail if coverage drops below 100% --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d820287..f830a00 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,14 @@ python: before_script: - pip install -r dev-requirements.txt -script: py.test --cov rfc3986 +script: + - > + if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then + py.test test/ + else + py.test -n 4 --cov rfc3986 tests/ + coverage report -m --fail-under 100 + fi notifications: on_success: change