Automate coverage via Travis and Codecov
This commit is contained in:
parent
79390dc0e4
commit
42dc70874c
2 changed files with 9 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
language: python
|
language: python
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install tox
|
- pip install tox codecov
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- TOX_ENV=pypy
|
- TOX_ENV=pypy
|
||||||
|
|
@ -26,3 +26,6 @@ matrix:
|
||||||
- python: 3.5
|
- python: 3.5
|
||||||
env:
|
env:
|
||||||
- TOX_ENV=flake8
|
- TOX_ENV=flake8
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- coverage combine && codecov
|
||||||
6
tox.ini
6
tox.ini
|
|
@ -10,9 +10,13 @@ envlist =
|
||||||
|
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
deps =
|
||||||
|
six
|
||||||
|
coverage
|
||||||
|
|
||||||
commands =
|
commands =
|
||||||
scour --version
|
scour --version
|
||||||
python testscour.py
|
coverage run --parallel-mode --source=scour testscour.py
|
||||||
|
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue