Merge pull request #115 from Ede123/coverage
This commit is contained in:
commit
e1e3051de0
3 changed files with 20 additions and 3 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
|
||||||
10
Makefile
10
Makefile
|
|
@ -7,6 +7,11 @@ clean:
|
||||||
rm -rf build
|
rm -rf build
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
rm -rf scour.egg-info
|
rm -rf scour.egg-info
|
||||||
|
rm -rf .tox
|
||||||
|
rm -f .coverage*
|
||||||
|
rm -rf htmlcov
|
||||||
|
find . -name "*.pyc" -type f -exec rm -f {} \;
|
||||||
|
find . -name "*__pycache__" -type d -prune -exec rm -rf {} \;
|
||||||
|
|
||||||
publish: clean
|
publish: clean
|
||||||
python setup.py register
|
python setup.py register
|
||||||
|
|
@ -26,3 +31,8 @@ test_error_on_flowtext:
|
||||||
|
|
||||||
flake8:
|
flake8:
|
||||||
flake8 --max-line-length=119
|
flake8 --max-line-length=119
|
||||||
|
|
||||||
|
coverage:
|
||||||
|
coverage run --source=scour testscour.py
|
||||||
|
coverage html
|
||||||
|
coverage report
|
||||||
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