Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tox unit test #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
language: python

env:
matrix:
- TOX_ENV=py27-dj15
- TOX_ENV=py27-dj16
- TOX_ENV=py27-dj17
- TOX_ENV=py27-dj18
- TOX_ENV=py34-dj15
- TOX_ENV=py34-dj16
- TOX_ENV=py34-dj17
- TOX_ENV=py34-dj18

python:
- "2.7"

before_install:
- sudo apt-get update -qq
- "3.4"

install:
- pip install coveralls
- pip install tox coverage coveralls

script:
- coverage run --source=djcelery_ses setup.py test
#- coverage run --source=djcelery_ses setup.py test
- tox -e $TOX_ENV

after_success:
- coveralls
23 changes: 23 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[tox]
envlist = {py27,py34}-dj{15,16,17,18,19}
skipsdist=True


[testenv]
basepython =
py27: python2.7
py34: python3.4
deps =
pytest
dj15: django>=1.5,<1.6
dj16: django>=1.6,<1.7
dj17: django>=1.7,<1.8
dj18: django>=1.8,<1.9
dj19: django>=1.9,<1.10
commands = python setup.py test


[testenv:py27-cov]
deps =
dj18: Django>=1.8,<1.9
command = coverage run --source=djcelery_ses setup.py test