Toxify the project
Test against all supported python versions.
This commit is contained in:
parent
2ffdd06c90
commit
cfd9ae01dd
|
@ -12,3 +12,6 @@ build
|
|||
|
||||
# virtualenv
|
||||
.env
|
||||
|
||||
# tox
|
||||
.tox
|
||||
|
|
19
.travis.yml
19
.travis.yml
|
@ -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
13
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue