diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..7059cc3 --- /dev/null +++ b/.coveragerc @@ -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__.: diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8bd67ff --- /dev/null +++ b/.travis.yml @@ -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 +