Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

Commit

Permalink
Test agains recent Django/Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jaap3 committed Nov 26, 2015
1 parent 0e96421 commit 2ab5983
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 50 deletions.
2 changes: 0 additions & 2 deletions .coveralls.yml

This file was deleted.

32 changes: 17 additions & 15 deletions .travis.yml
@@ -1,18 +1,20 @@
# Config file for automatic testing at travis-ci.org

language: python

install: pip install tox

script:
- tox

python:
- 2.7
- 3.4
env:
- TOXENV=py26-dj14
- TOXENV=py26-dj15
- TOXENV=py27-dj16
- TOXENV=py33-dj16
- TOXENV=py27-dj17
- TOXENV=py33-dj17
- TOXENV=flake8
- TOXENV=coverage
- DJANGO_VERSION='>=1.7,<1.8'
- DJANGO_VERSION='>=1.8,<1.9'
- DJANGO_VERSION='>=1.9rc2,<1.10 --pre'
install:
- pip install Django $DJANGO_VERSION
- pip install -q -e .
- pip install -q -r test-requirements.txt
script:
- coverage run --source smuggler --branch manage.py test
after_success:
- coveralls
branches:
only:
- master
54 changes: 21 additions & 33 deletions tox.ini
@@ -1,54 +1,42 @@
[tox]
envlist = py26-dj14, py26-dj15,
py27-dj16, py33-dj16,
py27-dj17, py33-dj17
envlist = py27-dj17, py34-dj17
py27-dj18, py34-dj18
py27-dj19, py34-dj19

[testenv]
commands = python manage.py test
deps = freezegun

[testenv:py26-dj14]
commands = python manage.py test test_app
basepython = python2.6
deps = django>=1.4,<1.5
[testenv:py27-dj17]
basepython = python2.7
deps = Django>=1.7,<1.8
{[testenv]deps}

[testenv:py26-dj15]
commands = python manage.py test test_app
basepython = python2.6
deps = django>=1.5,<1.6
[testenv:py34-dj17]
basepython = python3.4
deps = Django>=1.7,<1.8
{[testenv]deps}

[testenv:py27-dj16]
[testenv:py27-dj18]
basepython = python2.7
deps = django>=1.6,<1.7
deps = Django>=1.8,<1.9
{[testenv]deps}

[testenv:py33-dj16]
basepython = python3.3
deps = django>=1.6,<1.7
[testenv:py34-dj18]
basepython = python3.4
deps = Django>=1.8,<1.9
{[testenv]deps}

[testenv:py27-dj17]
[testenv:py27-dj19]
basepython = python2.7
deps = https://github.com/django/django/tarball/stable/1.7.x
{[testenv]deps}
deps = Django>=1.9rc2,<1.10
{[testenv]deps}

[testenv:py33-dj17]
basepython = python3.3
deps = https://github.com/django/django/tarball/stable/1.7.x
{[testenv]deps}
[testenv:py34-dj19]
basepython = python3.4
deps = Django>=1.9rc2,<1.10
{[testenv]deps}

[testenv:flake8]
commands = flake8 smuggler tests
deps = flake8

[testenv:coverage]
usedevelop = true
commands =
coverage run --source smuggler --branch manage.py test
coveralls
deps =
coverage
coveralls
{[testenv:py26-dj14]deps}

0 comments on commit 2ab5983

Please sign in to comment.