add code coverage reporting

This commit is contained in:
Andrey Pohilko
2017-04-28 14:24:17 +06:00
parent f03f87fc1d
commit 621a1cd1d0
2 changed files with 11 additions and 2 deletions

View File

@@ -1,3 +1,11 @@
dependencies:
pre:
- pip install -r requirements.txt
test:
override:
- coverage run test.py
post:
- mkdir -p $CIRCLE_ARTIFACTS/coverage-html
- coverage html -d $CIRCLE_ARTIFACTS/coverage-html
- mv .coverage $CIRCLE_ARTIFACTS

View File

@@ -1,2 +1,3 @@
requests
mock
coverage