mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
30 lines
860 B
YAML
30 lines
860 B
YAML
language: python
|
|
|
|
python:
|
|
- "2.6"
|
|
- "2.7"
|
|
- "3.2"
|
|
|
|
env:
|
|
- DJANGO=https://github.com/django/django/zipball/master
|
|
- DJANGO=https://www.djangoproject.com/download/1.5c1/tarball/
|
|
- DJANGO="django==1.4.3 --use-mirrors"
|
|
- DJANGO="django==1.3.5 --use-mirrors"
|
|
|
|
install:
|
|
- pip install $DJANGO
|
|
- "if [[ $TRAVIS_PYTHON_VERSION != '3.2' ]]; then pip install django-filter==0.5.4 --use-mirrors; fi"
|
|
- "if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then pip install https://github.com/alex/django-filter/tarball/master; fi"
|
|
- "if [[ $DJANGO == 'django==1.3.5 --use-mirrors' ]]; then pip install six --use-mirrors; fi"
|
|
- export PYTHONPATH=.
|
|
|
|
script:
|
|
- python rest_framework/runtests/runtests.py
|
|
|
|
matrix:
|
|
exclude:
|
|
- python: "3.2"
|
|
env: DJANGO="django==1.4.3 --use-mirrors"
|
|
- python: "3.2"
|
|
env: DJANGO="django==1.3.5 --use-mirrors"
|