Skip to content

Commit 68f2a41

Browse files
committed
Add tox configuration.
1 parent 06f88d6 commit 68f2a41

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
language: python
2+
dist: xenial
3+
sudo: true
24
python:
35
- 2.7
46
- 3.4
57
- 3.5
68
- 3.6
9+
- 3.7
710
env:
811
- DJANGO_VERSION='>=1.11,<2.0'
912
- DJANGO_VERSION='>=2.0,<2.1'
@@ -16,6 +19,8 @@ matrix:
1619
env: DJANGO_VERSION='>=2.1,<2.2'
1720
- python: 3.4
1821
env: DJANGO_VERSION='>=2.1,<2.2'
22+
- python: 3.7
23+
env: DJANGO_VERSION='>=1.11,<2.0'
1924
# command to run tests
2025
install: ./install_redis.sh
2126
script: make test DJANGO_VERSION=$DJANGO_VERSION

requirements-dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ hiredis==0.2.0
22
django-nose==1.4.4
33
nose==1.3.6
44
msgpack-python==0.4.6
5-
pyyaml==3.11
5+
pyyaml==4.1
6+
tox

tox.ini

Lines changed: 22 additions & 0 deletions
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)