Browse Source

Add tox.ini

Marc Abramowitz 13 years ago
parent
commit
842455ad0f
2 changed files with 12 additions and 1 deletions
  1. 2 1
      .gitignore
  2. 10 0
      tox.ini

+ 2 - 1
.gitignore

@@ -1,4 +1,5 @@
 .coverage
+.tox
 /cover
 /build
 /dist
@@ -12,4 +13,4 @@ pip-log.txt
 .DS_Store
 /docs/html
 /docs/doctrees
-example/db.sqlite
+example/db.sqlite

+ 10 - 0
tox.ini

@@ -0,0 +1,10 @@
+# Tox (http://codespeak.net/~hpk/tox/) 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 = py26, py27
+
+[testenv]
+commands = python setup.py test