From faaba210ec069205f9e00fc271ef3d5c8a7450c9 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Tue, 9 Dec 2014 10:58:06 -0800 Subject: [PATCH] Add tox and travis support --- .travis.yml | 14 ++++++++++++++ requirements-test.txt | 3 +++ tests/__init__.py | 0 tox.ini | 11 +++++++++++ 4 files changed, 28 insertions(+) create mode 100644 .travis.yml create mode 100644 requirements-test.txt create mode 100644 tests/__init__.py create mode 100644 tox.ini 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/