mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
d08536ad9d
Conflicts: .travis.yml docs/api-guide/fields.md docs/api-guide/routers.md docs/topics/release-notes.md rest_framework/authentication.py rest_framework/serializers.py rest_framework/templatetags/rest_framework.py rest_framework/tests/test_authentication.py rest_framework/tests/test_filters.py rest_framework/tests/test_hyperlinkedserializers.py rest_framework/tests/test_serializer.py rest_framework/tests/test_testing.py rest_framework/utils/encoders.py tox.ini
39 lines
1.5 KiB
YAML
39 lines
1.5 KiB
YAML
language: python
|
|
|
|
python:
|
|
- "2.6"
|
|
- "2.7"
|
|
- "3.2"
|
|
- "3.3"
|
|
|
|
env:
|
|
- DJANGO="https://www.djangoproject.com/download/1.7b1/tarball/"
|
|
- DJANGO="django==1.6.2"
|
|
- DJANGO="django==1.5.5"
|
|
- DJANGO="django==1.4.10"
|
|
|
|
install:
|
|
- pip install $DJANGO
|
|
- pip install defusedxml==0.3 Pillow==2.3.0
|
|
- "if [[ ${TRAVIS_PYTHON_VERSION::1} != '3' ]]; then pip install oauth2==1.5.211; fi"
|
|
- "if [[ ${TRAVIS_PYTHON_VERSION::1} != '3' ]]; then pip install django-oauth-plus==2.2.4; fi"
|
|
- "if [[ ${TRAVIS_PYTHON_VERSION::1} != '3' ]]; then pip install django-oauth2-provider==0.2.4; fi"
|
|
- "if [[ ${TRAVIS_PYTHON_VERSION::1} != '3' ]]; then pip install django-guardian==1.1.1; fi"
|
|
- "if [[ ${DJANGO::11} == 'django==1.3' ]]; then pip install django-filter==0.5.4; fi"
|
|
- "if [[ ${DJANGO::11} != 'django==1.3' ]]; then pip install django-filter==0.7; fi"
|
|
- "if [[ ${TRAVIS_PYTHON_VERSION::1} == '3' ]]; then pip install -e git+https://github.com/linovia/django-guardian.git@feature/django_1_7#egg=django-guardian-1.2.0; fi"
|
|
- "if [[ ${DJANGO} == 'https://www.djangoproject.com/download/1.7b1/tarball/' ]]; then pip install -e git+https://github.com/linovia/django-guardian.git@feature/django_1_7#egg=django-guardian-1.2.0; fi"
|
|
- export PYTHONPATH=.
|
|
|
|
script:
|
|
- python rest_framework/runtests/runtests.py
|
|
|
|
matrix:
|
|
exclude:
|
|
- python: "2.6"
|
|
env: DJANGO="https://www.djangoproject.com/download/1.7b1/tarball/"
|
|
- python: "3.2"
|
|
env: DJANGO="django==1.4.10"
|
|
- python: "3.3"
|
|
env: DJANGO="django==1.4.10"
|