diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..398ff08 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +branch = True diff --git a/.gitignore b/.gitignore index 83f3764..1da5fee 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ .tox .cache *.egg-info +/.project +/.pydevproject +/.coverage diff --git a/.travis.yml b/.travis.yml index e09c73f..83613fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,17 @@ language: python + python: - 2.7 - 3.4 - 3.5 -install: pip install tox-travis + +install: pip install tox-travis codecov + script: tox + +after_success: + - codecov + matrix: allow_failures: - python: 2.7 diff --git a/tox.ini b/tox.ini index 616fc67..88cbe5c 100644 --- a/tox.ini +++ b/tox.ini @@ -4,12 +4,13 @@ envlist = py34,py35 [testenv] deps= pytest + pytest-cov pylama pytest-asyncio pytest-catchlog pytest-mock commands= - py.test test {posargs} + py.test --cov=dsmr_parser test {posargs} pylama dsmr_parser test [pylama:pylint]