]> git.ozlabs.org Git - patchwork/blobdiff - tox.ini
login: Focus the username field on load
[patchwork] / tox.ini
diff --git a/tox.ini b/tox.ini
index 8d99e6a8176ee46e0936a47b427f1487862881e1..891fc5ec2499d484181406a1e63967e4ecacdbfc 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,46 +1,48 @@
 [tox]
-envlist = {py27}-django{15,16,17}, pep8
+minversion = 1.6
+envlist = {py27}-django{16,17,18}
 skipsdist = True
 
+[testenv]
+basepython =
+    py27: python2.7
+deps =
+    -r{toxinidir}/docs/requirements-dev.txt
+    django16: django>=1.6,<1.7
+    django17: django>=1.7,<1.8
+    django18: django>=1.8,<1.9
+setenv =
+    DJANGO_SETTINGS_MODULE = patchwork.settings.dev
+commands =
+    {toxinidir}/manage.py test '{posargs:patchwork}'
+passenv =
+    http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
+    PW_TEST_DB_USER PW_TEST_DB_PASS
+
 [testenv:pep8]
-deps = flake8
+basepython = python2.7
+deps = flake
 commands = flake8 {posargs}
 
 [flake8]
 ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405
-exclude = ./apps/patchwork/tests
+exclude = ./patchwork/tests
 
 [testenv:lint]
 basepython = python2.7
 deps =
     pylint
-    -r{toxinidir}/docs/requirements-django-1.7-mysql.txt
-commands = pylint apps --rcfile=pylint.rc
+    -r{toxinidir}/docs/requirements-prod.txt
+commands = pylint patchwork --rcfile=pylint.rc
 
 [testenv:coverage]
 basepython = python2.7
 deps =
     coverage
-    -r{toxinidir}/docs/requirements-django-1.6-mysql.txt
+    -r{toxinidir}/docs/requirements-prod.txt
 setenv =
     DJANGO_SETTINGS_MODULE = patchwork.settings.dev
 commands =
     coverage erase
-    {toxinidir}/apps/manage.py syncdb
-    coverage run --omit=*tox* --branch {toxinidir}/apps/manage.py test patchwork
+    coverage run --omit=*tox* --branch {toxinidir}/manage.py test patchwork
     coverage report -m
-
-[testenv]
-basepython =
-    py27: python2.7
-commands =
-    {toxinidir}/apps/manage.py syncdb
-    {toxinidir}/apps/manage.py test patchwork
-deps =
-    python-dateutil==1.5
-    MySQL-python==1.2.5
-    django15: django<1.6,>=1.5
-    django16: django<1.7,>=1.6
-    django17: django<1.8,>=1.7
-setenv =
-    DJANGO_SETTINGS_MODULE = patchwork.settings.dev