Add coveragerc and travis files.

This commit is contained in:
Dave Halter
2017-05-08 09:27:45 +02:00
parent 4304b1bda2
commit a5a5df78f9
2 changed files with 40 additions and 0 deletions

10
.coveragerc Normal file
View File

@@ -0,0 +1,10 @@
[run]
[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Don't complain about missing debug-only code:
def __repr__
# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.:

30
.travis.yml Normal file
View File

@@ -0,0 +1,30 @@
language: python
sudo: false
python:
- 2.6
- 2.7
- 3.3
- 3.4
- 3.5
- 3.6
- pypy
matrix:
allow_failures:
- python: pypy
- env: TOXENV=cov
- env: TOXENV=sith
include:
- python: 3.5
env: TOXENV=cov
- python: 3.5
env: TOXENV=sith
install:
- pip install --quiet tox-travis
script:
- tox
after_script:
- if [ $TOXENV == "cov" ]; then
pip install --quiet coveralls;
coveralls;
fi