mirror of
https://github.com/jazzband/django-defender.git
synced 2026-03-16 22:10:32 +00:00
31 lines
640 B
YAML
31 lines
640 B
YAML
language: python
|
|
dist: xenial
|
|
cache: pip
|
|
python:
|
|
- "2.7"
|
|
- "3.5"
|
|
- "3.6"
|
|
- "3.7"
|
|
- "3.8"
|
|
- "pypy3"
|
|
env:
|
|
- DJANGO=1.11
|
|
- DJANGO=2.1
|
|
- DJANGO=2.2
|
|
services:
|
|
- redis-server
|
|
install:
|
|
- pip install coveralls mockredispy django-redis-cache "celery<5"
|
|
- pip install -q django~=$DJANGO
|
|
- python setup.py develop
|
|
script:
|
|
- PYTHONPATH=$PYTHONPATH:$PWD coverage run --source=defender $(which django-admin.py) test defender --settings=defender.travis_settings
|
|
- coverage report -m
|
|
matrix:
|
|
exclude:
|
|
- python: "2.7"
|
|
env: DJANGO=2.1
|
|
- python: "2.7"
|
|
env: DJANGO=2.2
|
|
after_success:
|
|
- coveralls --verbose
|