From 6bf9904e1532bf1ab7657e7e10faa5932a0e2e69 Mon Sep 17 00:00:00 2001 From: Ziad Sawalha Date: Fri, 14 Mar 2014 16:29:28 -0500 Subject: [PATCH] Add support for tox Run 'tox' to test against python 2.6, 2.7, and 3.3 --- README.md | 6 +++++- tox.ini | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 tox.ini diff --git a/README.md b/README.md index 7f008f2..629179d 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Make sure to verify (using `pwhois` or otherwise) that the WHOIS data for the do ./test.py update thedomain.com -### Running the full test suite +### Running all tests ./test.py run all @@ -77,6 +77,10 @@ Make sure to verify (using `pwhois` or otherwise) that the WHOIS data for the do ./test.py run thedomain.com +### Running the full test suite including support for multiple python versions + + tox + ### Generating documentation You need [ZippyDoc](http://cryto.net/zippydoc) (which can be installed through `pip install zippydoc`). diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..cd1c703 --- /dev/null +++ b/tox.ini @@ -0,0 +1,7 @@ +[tox] +envlist = py26,py27,py33 + +[testenv] +usedevelop = True +setenv = VIRTUAL_ENV={envdir} +commands = python test.py run all