Skip to content

Commit 47c21a2

Browse files
committed
Add tox configuration.
1 parent 02572fa commit 47c21a2

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ django-nose==1.4.4
33
nose==1.3.6
44
msgpack-python==0.4.6
55
pyyaml==3.11
6+
tox

tox.ini

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[tox]
2+
envlist = py{27}-django{111},py{34,35,36}-django{111,20},py{35,36}-django{21}
3+
install_command = pip install {opts} {packages}
4+
5+
[testenv]
6+
basepython =
7+
py27: python2.7
8+
py34: python3.4
9+
py35: python3.5
10+
py36: python3.6
11+
whitelist_externals =
12+
make
13+
passenv =
14+
REDIS_CACHE_TEST_SERVER = {env:REDIS_CACHE_TEST_SERVER}
15+
commands =
16+
django111: make test DJANGO_VERSION=">=1.11,<2.0"
17+
django20: make test DJANGO_VERSION=">=2.0,<2.1"
18+
django21: make test DJANGO_VERSION=">=2.1,<2.2"

0 commit comments

Comments
 (0)