Skip to content

Commit cfd9ae0

Browse files
ticosaxjleclanche
authored andcommitted
Toxify the project
Test against all supported python versions.
1 parent 2ffdd06 commit cfd9ae0

File tree

3 files changed

+22
-13
lines changed

3 files changed

+22
-13
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ build
1212

1313
# virtualenv
1414
.env
15+
16+
# tox
17+
.tox

.travis.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
language: python
2-
python:
3-
- "2.7"
4-
- "3.2"
5-
- "3.3"
6-
- "3.4"
72
env:
8-
- DJANGO=1.8
3+
- TOXENV=flake8
4+
- TOXENV=py27-django18
5+
- TOXENV=py33-django18
6+
- TOXENV=py34-django18
97
install:
10-
- pip install -q Django==$DJANGO --use-mirrors
11-
- pip install -r requirements.txt --use-mirrors
12-
- pip install flake8 --use-mirrors
13-
- python setup.py -q install
14-
before_script:
15-
- "flake8 push_notifications"
8+
- pip install tox
169
script:
17-
- python tests/runtests.py
10+
- tox -e $TOXENV

tox.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
[tox]
2+
envlist = {py27,py33,py34}-django18,flake8
3+
4+
[testenv]
5+
commands = python ./tests/runtests.py
6+
deps=
7+
django18: Django==1.8.2
8+
mock==1.0.1
9+
10+
[testenv:flake8]
11+
commands = flake8 push_notifications
12+
deps = flake8
13+
114
[flake8]
215
ignore = F403,W191,E126,E128
316
max-line-length = 160

0 commit comments

Comments
 (0)