Permalink
Browse files

Added Django 1.4.X tox config section.

  • Loading branch information...
1 parent 697dbd1 commit f576dcdb581a7ff7c00150c65658732c2b330765 @jezdez jezdez committed Jan 24, 2012
Showing with 48 additions and 1 deletion.
  1. +10 −1 compressor/test_settings.py
  2. +38 −0 tox.ini
@@ -1,10 +1,19 @@
import os
+import django
TEST_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'tests')
COMPRESS_CACHE_BACKEND = 'locmem://'
-DATABASE_ENGINE = 'sqlite3'
+if django.VERSION[:2] > (1, 3):
+ DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'NAME': ':memory:',
+ }
+ }
+else:
+ DATABASE_ENGINE = 'sqlite3'
INSTALLED_APPS = [
'compressor',
View
38 tox.ini
@@ -93,3 +93,41 @@ deps =
jinja2
django==1.3.1
+[testenv:py25-1.4.X]
+basepython = python2.5
+deps =
+ unittest2
+ BeautifulSoup==3.2.0
+ html5lib
+ pep8
+ pyflakes
+ django-jenkins
+ mock
+ jinja2
+ https://github.com/django/django/zipball/master
+
+[testenv:py26-1.4.X]
+basepython = python2.6
+deps =
+ unittest2
+ BeautifulSoup==3.2.0
+ html5lib
+ pep8
+ pyflakes
+ django-jenkins
+ mock
+ jinja2
+ https://github.com/django/django/zipball/master
+
+[testenv:py27-1.4.X]
+basepython = python2.7
+deps =
+ unittest2
+ BeautifulSoup==3.2.0
+ html5lib
+ pep8
+ pyflakes
+ django-jenkins
+ mock
+ jinja2
+ https://github.com/django/django/zipball/master

0 comments on commit f576dcd

Please sign in to comment.