mirror of
https://github.com/jazzband/django-defender.git
synced 2026-03-16 22:10:32 +00:00
* Allow decoration of functions beyond the admin login * Exclude tests file from coverage * Allow installing django 1.11 * Add python 3.6 for testing
47 lines
848 B
YAML
47 lines
848 B
YAML
language: python
|
|
|
|
python:
|
|
- "2.7"
|
|
- "3.3"
|
|
- "3.4"
|
|
- "3.5"
|
|
- "3.6"
|
|
|
|
env:
|
|
- DJANGO=1.8
|
|
- DJANGO=1.9
|
|
- DJANGO=1.10
|
|
- DJANGO=1.11
|
|
|
|
services:
|
|
- redis-server
|
|
|
|
install:
|
|
- pip install -q django~=$DJANGO.0
|
|
- pip install coveralls
|
|
- pip install mockredispy
|
|
- pip install django-redis-cache
|
|
- pip install 'celery<4'
|
|
- 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: "3.3"
|
|
env: DJANGO=1.9
|
|
- python: "3.3"
|
|
env: DJANGO=1.10
|
|
- python: "3.3"
|
|
env: DJANGO=1.11
|
|
- python: "3.6"
|
|
env: DJANGO=1.8
|
|
- python: "3.6"
|
|
env: DJANGO=1.9
|
|
- python: "3.6"
|
|
env: DJANGO=1.10
|
|
|
|
after_success:
|
|
- coveralls --verbose
|