diff --git a/.gitignore b/.gitignore index 75a0e78..39d1fe7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.egg-info *.pyc .coverage +.tox dist/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f8bbef3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +language: python + +python: + - 2.6 + - 2.7 + +env: + - DJANGO=Django==1.4.10 + - DJANGO=Django==1.5.5 + - DJANGO=Django==1.6.2 + +install: + - pip install $DJANGO + - pip install nose + +script: + - nosetests tests.py diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..8a95b69 --- /dev/null +++ b/tox.ini @@ -0,0 +1,60 @@ +[tox] +envlist = + py26-1.3, py26-1.4, py26-1.5, py26-1.6, + py27-1.3, py27-1.4, py27-1.5, py27-1.6, + + +[testenv] +commands = nosetests tests.py + + +[testenv:py26-1.3] +basepython = python2.6 +deps = + django == 1.3.7 + nose + + +[testenv:py26-1.4] +basepython = python2.6 +deps = + django == 1.4.10 + nose + +[testenv:py26-1.5] +basepython = python2.6 +deps = + django == 1.5.5 + nose + +[testenv:py26-1.6] +basepython = python2.6 +deps = + django == 1.6.2 + nose + + +[testenv:py27-1.3] +basepython = python2.7 +deps = + django == 1.3.7 + nose + + +[testenv:py27-1.4] +basepython = python2.7 +deps = + django == 1.4.10 + nose + +[testenv:py27-1.5] +basepython = python2.7 +deps = + django == 1.5.5 + nose + +[testenv:py27-1.6] +basepython = python2.7 +deps = + django == 1.6.2 + nose