debian-django-ratelimit/.travis.yml

47 lines
1.3 KiB
YAML

language: python
sudo: false
env:
- DJANGO_VERSION=1.11
- DJANGO_VERSION=2.0
- DJANGO_VERSION=2.1
- DJANGO_VERSION=master
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "pypy"
install:
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then pip install -q python-memcached>=1.57; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then pip install -q python3-memcached>=1.51; fi
- if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then pip install -q python-memcached>=1.57; fi
- if [[ $DJANGO_VERSION != master ]]; then pip install -q "Django>=${DJANGO_VERSION},<${DJANGO_VERSION}.99"; fi
- if [[ $DJANGO_VERSION == master ]]; then pip install https://github.com/django/django/archive/master.tar.gz; fi
- pip install "redis<3" django-redis==4.9.0 flake8
script:
- ./run.sh test
- ./run.sh flake8
matrix:
exclude:
- python: "2.7"
env: DJANGO_VERSION=2.0
- python: "2.7"
env: DJANGO_VERSION=2.1
- python: "2.7"
env: DJANGO_VERSION=master
- python: "3.4"
env: DJANGO_VERSION=2.1
- python: "3.4"
env: DJANGO_VERSION=master
- python: "pypy"
env: DJANGO_VERSION=2.0
- python: "pypy"
env: DJANGO_VERSION=2.1
- python: "pypy"
env: DJANGO_VERSION=master
allow_failures:
- python: "3.5"
env: DJANGO_VERSION=master
- python: "3.6"
env: DJANGO_VERSION=master