diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2e7cd01 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: python + +sudo: false +env: + - TOXENV=py27 + - TOXENV=py33 + - TOXENV=py34 + - TOXENV=pypy + +install: + - travis_retry pip install tox + +script: + - travis_retry tox diff --git a/requirements-test.txt b/requirements-test.txt new file mode 100644 index 0000000..a946f8e --- /dev/null +++ b/requirements-test.txt @@ -0,0 +1,3 @@ +pytest +pytest-capturelog +pytest-cov diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..9bdc56b --- /dev/null +++ b/tox.ini @@ -0,0 +1,11 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox" from this directory. + +[tox] +envlist = py27, py33, py34, pypy + +[testenv] +deps = -r{toxinidir}/requirements-test.txt +commands = py.test tests/