Skip to content

Commit

Permalink
Add tox configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
joehybird committed Jan 15, 2019
1 parent 06f88d6 commit 1e22e46
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
language: python
dist: xenial
sudo: true
python:
- 2.7
- 3.4
- 3.5
- 3.6
- 3.7
env:
- DJANGO_VERSION='>=1.11,<2.0'
- DJANGO_VERSION='>=2.0,<2.1'
Expand All @@ -16,6 +19,8 @@ matrix:
env: DJANGO_VERSION='>=2.1,<2.2'
- python: 3.4
env: DJANGO_VERSION='>=2.1,<2.2'
- python: 3.7
env: DJANGO_VERSION='>=1.11,<2.0'
# command to run tests
install: ./install_redis.sh
script: make test DJANGO_VERSION=$DJANGO_VERSION
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ django-nose==1.4.4
nose==1.3.6
msgpack-python==0.4.6
pyyaml==3.11
tox
22 changes: 22 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[tox]
envlist = py{27,34,35,36}-django{111},
py{34}-django{20},
py{35,36,37}-django{20,21}

install_command = pip install {opts} {packages}

[testenv]
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
py37: python3.7
whitelist_externals =
make
passenv =
REDIS_CACHE_TEST_SERVER = {env:REDIS_CACHE_TEST_SERVER:./redis/src/redis-server}
commands =
django111: make test DJANGO_VERSION=">=1.11,<2.0"
django20: make test DJANGO_VERSION=">=2.0,<2.1"
django21: make test DJANGO_VERSION=">=2.1,<2.2"

0 comments on commit 1e22e46

Please sign in to comment.