Skip to content

Commit c20c517

Browse files
committed
Add tox configuration.
1 parent 3afd023 commit c20c517

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ python:
44
- 3.4
55
- 3.5
66
- 3.6
7+
- 3.7
78
env:
89
- DJANGO_VERSION='>=1.11,<2.0'
910
- DJANGO_VERSION='>=2.0,<2.1'
@@ -16,6 +17,8 @@ matrix:
1617
env: DJANGO_VERSION='>=2.1,<2.2'
1718
- python: 3.4
1819
env: DJANGO_VERSION='>=2.1,<2.2'
20+
- python: 3.7
21+
env: DJANGO_VERSION='>=1.11,<2.0'
1922
# command to run tests
2023
install: ./install_redis.sh
2124
script: make test DJANGO_VERSION=$DJANGO_VERSION

requirements-dev.txt

+1
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

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

0 commit comments

Comments
 (0)