configure cover better

pull/68/head
Viktor Stanchev 2015-09-16 23:49:18 -07:00
parent 07ad7e33e6
commit 8a371dea56
2 changed files with 8 additions and 1 deletions

7
.coveragerc Normal file
View File

@ -0,0 +1,7 @@
[run]
branch = True
[report]
include = /home/ubuntu/pirate-get/*
omit = */tests/*,*__init__*
[html]
directory = /home/ubuntu/pirate-get/htmlcov/

View File

@ -10,6 +10,6 @@ test:
- coverage run -m unittest discover
post:
- mkdir -p $CIRCLE_ARTIFACTS/coverage
- cd /home/ubuntu/pirate-get && coverage html --include=`pwd`* --omit="*/tests/*,*__init__*"
- cd /home/ubuntu/pirate-get && coverage html
- cp -R /home/ubuntu/pirate-get/htmlcov/* $CIRCLE_ARTIFACTS/coverage
- coveralls