blob: 4f2fe9ad0d98f9fb0a40ec060fe9d3c934678a01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  | 
language: python
python:
  - "2.6"
  - "2.7"
  - "3.2"
  - "3.3"
env:
  - DJANGO="django==1.5 --use-mirrors"
  - DJANGO="django==1.4.3 --use-mirrors"
  - DJANGO="django==1.3.5 --use-mirrors"
install:
  - pip install $DJANGO
  - pip install defusedxml==0.3
  - "if [[ ${TRAVIS_PYTHON_VERSION::1} != '3' ]]; then pip install oauth2==1.5.211 --use-mirrors; fi"
  - "if [[ ${TRAVIS_PYTHON_VERSION::1} != '3' ]]; then pip install django-oauth-plus==2.0 --use-mirrors; fi"
  - "if [[ ${TRAVIS_PYTHON_VERSION::1} != '3' ]]; then pip install django-oauth2-provider==0.2.3 --use-mirrors; fi"
  - "if [[ ${TRAVIS_PYTHON_VERSION::1} != '3' ]]; then pip install django-filter==0.5.4 --use-mirrors; fi"
  - "if [[ ${TRAVIS_PYTHON_VERSION::1} == '3' ]]; then pip install https://github.com/alex/django-filter/tarball/master; 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"
    - python: "3.3"
      env: DJANGO="django==1.4.3 --use-mirrors"
    - python: "3.3"
      env: DJANGO="django==1.3.5 --use-mirrors"
  |