Skip to content

Commit

Permalink
Add tests for Django 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jpadilla committed Sep 3, 2014
1 parent be5175d commit 944f145
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 9 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@ language: python

services: sqlite

env:
- DJANGO="django==1.6.5"
- DJANGO="django==1.5.8"
- DJANGO="django==1.4.13"

python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"

env:
- DJANGO="django==1.7"
- DJANGO="django==1.6.5"
- DJANGO="django==1.5.8"
- DJANGO="django==1.4.13"

install:
- pip install $DJANGO
- pip install -r requirements.txt
Expand All @@ -24,6 +25,8 @@ script:

matrix:
exclude:
- python: "2.6"
env: DJANGO="django==1.7"
- python: "3.2"
env: DJANGO="django==1.4.13"
- python: "3.3"
Expand Down
7 changes: 7 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import os

import django
from django.conf import settings


def pytest_configure():
if not settings.configured:
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'

try:
django.setup()
except AttributeError:
pass
35 changes: 31 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,23 +1,50 @@
[tox]
downloadcache = {toxworkdir}/cache/
envlist =
py3.4-django1.6,py3.3-django1.6,py3.2-django1.6,py2.7-django1.6,py2.6-django1.6,
py3.4-django1.5,py3.3-django1.5,py3.2-django1.5,py2.7-django1.5,py2.6-django1.5,
py2.7-django1.4,py2.6-django1.4
py3.4-django1.7,py3.3-django1.7,py3.2-django1.7,py2.7-django1.7,
py3.4-django1.6,py3.3-django1.6,py3.2-django1.6,py2.7-django1.6,py2.6-django1.6,
py3.4-django1.5,py3.3-django1.5,py3.2-django1.5,py2.7-django1.5,py2.6-django1.5,
py2.7-django1.4,py2.6-django1.4

[testenv]
commands = ./runtests.py --fast

[testenv:flake8]
basepython = python2.7
commands = ./runtests.py --lintonly
deps = Django
-rrequirements.txt
-rrequirements-test.txt
commands = ./runtests.py --lintonly

[testenv:py3.4-django1.7]
basepython = python3.4
deps = Django==1.7
-rrequirements.txt
-rrequirements-test.txt

[testenv:py3.3-django1.7]
basepython = python3.3
deps = Django==1.7
-rrequirements.txt
-rrequirements-test.txt

[testenv:py3.2-django1.7]
basepython = python3.2
deps = Django==1.7
-rrequirements.txt
-rrequirements-test.txt

[testenv:py2.7-django1.7]
basepython = python2.7
deps = Django==1.7
-rrequirements.txt
-rrequirements-test.txt

[testenv:py3.4-django1.6]
basepython = python3.4
deps = Django==1.6.3
-rrequirements.txt
-rrequirements-test.txt

[testenv:py3.3-django1.6]
basepython = python3.3
Expand Down

0 comments on commit 944f145

Please sign in to comment.