Skip to content

Commit

Permalink
TST coverage support
Browse files Browse the repository at this point in the history
  • Loading branch information
kmike committed Mar 3, 2016
1 parent 952b24a commit 4dd6fcc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ dist
.ipynb_checkpoints
MANIFEST
easylist.txt
.cache
.coverage
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ before_install: >
sudo apt-get update -q;
sudo apt-get install -y libre2-dev;
fi
install:
- pip install -U tox
- pip install -U tox codecov

script: tox

after_success:
- codecov
8 changes: 7 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ envlist = py27,py33,py34,py35,pypy,py27-re2
[testenv]
deps=
pytest
pytest-cov

commands=
py.test --doctest-modules --doctest-glob *.rst {posargs:adblockparser tests README.rst}
; a workaround for tox bug: https://bitbucket.org/hpk42/tox/issue/176/
pip install -I {toxinidir}
py.test \
--cov=adblockparser --cov-report=term \
--doctest-modules --doctest-glob *.rst \
{posargs:adblockparser tests README.rst}

[re2]
deps = re2 >= 0.2.21
Expand Down

0 comments on commit 4dd6fcc

Please sign in to comment.