Toxify the project

Test against all supported python versions.
This commit is contained in:
Nicolas Delaby 2015-06-12 11:17:00 +02:00 committed by Jerome Leclanche
parent 2ffdd06c90
commit cfd9ae01dd
3 changed files with 22 additions and 13 deletions

3
.gitignore vendored
View File

@ -12,3 +12,6 @@ build
# virtualenv
.env
# tox
.tox

View File

@ -1,17 +1,10 @@
language: python
python:
- "2.7"
- "3.2"
- "3.3"
- "3.4"
env:
- DJANGO=1.8
- TOXENV=flake8
- TOXENV=py27-django18
- TOXENV=py33-django18
- TOXENV=py34-django18
install:
- pip install -q Django==$DJANGO --use-mirrors
- pip install -r requirements.txt --use-mirrors
- pip install flake8 --use-mirrors
- python setup.py -q install
before_script:
- "flake8 push_notifications"
- pip install tox
script:
- python tests/runtests.py
- tox -e $TOXENV

13
tox.ini
View File

@ -1,3 +1,16 @@
[tox]
envlist = {py27,py33,py34}-django18,flake8
[testenv]
commands = python ./tests/runtests.py
deps=
django18: Django==1.8.2
mock==1.0.1
[testenv:flake8]
commands = flake8 push_notifications
deps = flake8
[flake8]
ignore = F403,W191,E126,E128
max-line-length = 160