Skip to content

Commit

Permalink
Add tox and coverage configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
treyhunner committed May 13, 2013
1 parent 06928d6 commit 111daf0
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .coveragerc
@@ -0,0 +1,8 @@
[run]
source = names
branch = 1

[report]
exclude_lines =
# Don't measure coverage of cli-only code
if __name__ == "__main__":
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -23,6 +23,7 @@ pip-log.txt

# Unit test / coverage reports
.coverage
htmlcov
.tox
nosetests.xml

Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -8,6 +8,6 @@ python:
install:
- pip install coverage coveralls --use-mirrors

script: coverage run --branch --source=names setup.py test
script: coverage run setup.py test

after_success: coveralls
4 changes: 4 additions & 0 deletions runtests.sh
@@ -0,0 +1,4 @@
#!/bin/sh
coverage erase
tox
coverage html
11 changes: 11 additions & 0 deletions tox.ini
@@ -0,0 +1,11 @@
[tox]
envlist =
py27,
py32,
py33


[testenv]
deps =
coverage == 3.6
commands = coverage run -a setup.py test

0 comments on commit 111daf0

Please sign in to comment.