Add code coverage

This commit is contained in:
Tom Christie 2018-06-25 14:48:18 +01:00
parent a2a2a2968c
commit 64db036d00
2 changed files with 15 additions and 0 deletions

11
.codecov.yml Normal file
View File

@ -0,0 +1,11 @@
coverage:
precision: 2
round: down
range: "80...100"
status:
project: yes
patch: no
changes: no
comment: off

View File

@ -8,8 +8,12 @@ python:
install:
- pip install -r requirements.txt
- pip install codecov
- if [[ $TRAVIS_PYTHON_VERSION != '3.5' ]]; then pip install black; fi
script:
- scripts/test
- if [[ $TRAVIS_PYTHON_VERSION != '3.5' ]]; then scripts/lint; fi
after_script:
- codecov