|
1 |
| -language: python |
2 | 1 |
|
| 2 | +language: python |
3 | 3 | python:
|
4 |
| - - "2.6" |
5 |
| - - "2.7" |
6 |
| - - "3.2" |
7 | 4 | - "3.3"
|
8 |
| - - "pypy" |
9 |
| - |
10 |
| -# Django 1.3 is only compatible with psycopg2 version <= 2.4.1 |
11 |
| -# Django 1.4 is compatible with newer versions |
12 | 5 | env:
|
13 |
| - - DB=sqlite DJANGO_VERSION=1.3.5 PSYCOPG_VERSION=2.4.1 |
14 |
| - - DB=sqlite DJANGO_VERSION=1.4.3 PSYCOPG_VERSION=2.4.5 |
15 |
| - - DB=sqlite DJANGO_VERSION=1.5.2 PSYCOPG_VERSION=2.4.5 |
16 |
| - - DB=sqlite DJANGO_VERSION=1.6.1 PSYCOPG_VERSION=2.4.5 |
17 |
| - - DB=sqlite DJANGO_VERSION=master PSYCOPG_VERSION=2.4.5 |
18 |
| - |
19 |
| - - DB=mysql DJANGO_VERSION=1.3.5 PSYCOPG_VERSION=2.4.1 |
20 |
| - - DB=mysql DJANGO_VERSION=1.4.3 PSYCOPG_VERSION=2.4.5 |
21 |
| - - DB=mysql DJANGO_VERSION=1.5.2 PSYCOPG_VERSION=2.4.5 |
22 |
| - - DB=mysql DJANGO_VERSION=1.6.1 PSYCOPG_VERSION=2.4.5 |
23 |
| - - DB=mysql DJANGO_VERSION=master PSYCOPG_VERSION=2.4.5 |
24 |
| - |
25 |
| - - DB=postgres DJANGO_VERSION=1.3.5 PSYCOPG_VERSION=2.4.1 |
26 |
| - - DB=postgres DJANGO_VERSION=1.4.3 PSYCOPG_VERSION=2.4.5 |
27 |
| - - DB=postgres DJANGO_VERSION=1.5.2 PSYCOPG_VERSION=2.4.5 |
28 |
| - - DB=postgres DJANGO_VERSION=1.6.1 PSYCOPG_VERSION=2.4.5 |
29 |
| - - DB=postgres DJANGO_VERSION=master PSYCOPG_VERSION=2.4.5 |
30 |
| - |
31 |
| - |
32 |
| - |
| 6 | + - TESTENV=pypy-master-sqlite |
| 7 | + - TESTENV=python2.6-1.6-sqlite |
| 8 | + - TESTENV=python2.7-1.3-sqlite |
| 9 | + - TESTENV=python2.7-1.4-sqlite |
| 10 | + - TESTENV=python2.7-master-mysql_innodb |
| 11 | + - TESTENV=python2.7-master-mysql_myisam |
| 12 | + - TESTENV=python2.7-master-sqlite |
| 13 | + - TESTENV=python3.2-master-sqlite |
| 14 | + - TESTENV=python3.3-master-sqlite |
| 15 | + - TESTENV=python3.4-1.5-sqlite |
| 16 | + - TESTENV=python3.4-1.6-sqlite |
| 17 | + - TESTENV=python3.4-1.7-sqlite |
| 18 | + - TESTENV=python3.4-master-postgres |
| 19 | + - TESTENV=python3.4-master-sqlite |
33 | 20 | install:
|
34 |
| - - pip install pytest |
35 |
| - - pip install django-configurations>=0.2.1 |
36 |
| - - 'if [ "$DJANGO_VERSION" != "master" ]; then pip install django==$DJANGO_VERSION; fi' |
37 |
| - - 'if [ "$DJANGO_VERSION" == "master" ]; then pip install -e git+https://github.com/django/django@master#egg=Django; fi' |
38 |
| - - 'if [ "$TRAVIS_PYTHON_VERSION" == "pypy" -a "$DB" == postgres ]; then pip install psycopg2ct; fi' |
39 |
| - - 'if [ "$TRAVIS_PYTHON_VERSION" != "pypy" -a "$DB" == postgres ]; then pip install psycopg2==$PSYCOPG_VERSION; fi' |
40 |
| - - 'if [ "$DB" == mysql ]; then pip install mysql-python; fi' |
41 |
| - - pip install -r requirements.txt |
42 |
| - |
43 |
| -before_script: |
44 |
| - - psql -c 'create database pytest_django;' -U postgres |
45 |
| - - psql -c 'create database pytest_django_reuse;' -U postgres |
46 |
| - |
47 |
| - - mysql -e 'create database pytest_django;' |
48 |
| - - mysql -e 'create database pytest_django_reuse;' |
49 |
| - |
50 |
| -script: py.test --ds=tests.settings_$DB |
51 |
| - |
52 |
| - |
53 |
| -matrix: |
54 |
| - exclude: |
55 |
| - # pypy + postgres |
56 |
| - - python: pypy |
57 |
| - env: DB=postgres DJANGO_VERSION=1.3.5 PSYCOPG_VERSION=2.4.1 |
58 |
| - - python: pypy |
59 |
| - env: DB=postgres DJANGO_VERSION=1.4.3 PSYCOPG_VERSION=2.4.5 |
60 |
| - - python: pypy |
61 |
| - env: DB=postgres DJANGO_VERSION=1.5.2 PSYCOPG_VERSION=2.4.5 |
62 |
| - - python: pypy |
63 |
| - env: DB=postgres DJANGO_VERSION=1.6.1 PSYCOPG_VERSION=2.4.5 |
64 |
| - # pypy + mysql |
65 |
| - - python: pypy |
66 |
| - env: DB=mysql DJANGO_VERSION=1.3.5 PSYCOPG_VERSION=2.4.1 |
67 |
| - - python: pypy |
68 |
| - env: DB=mysql DJANGO_VERSION=1.4.3 PSYCOPG_VERSION=2.4.5 |
69 |
| - - python: pypy |
70 |
| - env: DB=mysql DJANGO_VERSION=1.5.2 PSYCOPG_VERSION=2.4.5 |
71 |
| - # python 3.2 + django 1.3 |
72 |
| - - python: "3.2" |
73 |
| - env: DB=sqlite DJANGO_VERSION=1.3.5 PSYCOPG_VERSION=2.4.1 |
74 |
| - - python: "3.2" |
75 |
| - env: DB=mysql DJANGO_VERSION=1.3.5 PSYCOPG_VERSION=2.4.1 |
76 |
| - - python: "3.2" |
77 |
| - env: DB=postgres DJANGO_VERSION=1.3.5 PSYCOPG_VERSION=2.4.1 |
78 |
| - # python 3.2 + django 1.4 |
79 |
| - - python: "3.2" |
80 |
| - env: DB=sqlite DJANGO_VERSION=1.4.3 PSYCOPG_VERSION=2.4.5 |
81 |
| - - python: "3.2" |
82 |
| - env: DB=mysql DJANGO_VERSION=1.4.3 PSYCOPG_VERSION=2.4.5 |
83 |
| - - python: "3.2" |
84 |
| - env: DB=postgres DJANGO_VERSION=1.4.3 PSYCOPG_VERSION=2.4.5 |
85 |
| - # python 3.2 + mysql |
86 |
| - - python: "3.2" |
87 |
| - env: DB=mysql DJANGO_VERSION=1.5.2 PSYCOPG_VERSION=2.4.5 |
88 |
| - - python: "3.2" |
89 |
| - env: DB=mysql DJANGO_VERSION=1.6.1 PSYCOPG_VERSION=2.4.5 |
90 |
| - - python: "3.2" |
91 |
| - env: DB=mysql DJANGO_VERSION=master PSYCOPG_VERSION=2.4.5 |
92 |
| - |
93 |
| - # python 3.3 + django 1.3 |
94 |
| - - python: "3.3" |
95 |
| - env: DB=sqlite DJANGO_VERSION=1.3.5 PSYCOPG_VERSION=2.4.1 |
96 |
| - - python: "3.3" |
97 |
| - env: DB=mysql DJANGO_VERSION=1.3.5 PSYCOPG_VERSION=2.4.1 |
98 |
| - - python: "3.3" |
99 |
| - env: DB=postgres DJANGO_VERSION=1.3.5 PSYCOPG_VERSION=2.4.1 |
100 |
| - # python 3.3 + django 1.4 |
101 |
| - - python: "3.3" |
102 |
| - env: DB=sqlite DJANGO_VERSION=1.4.3 PSYCOPG_VERSION=2.4.5 |
103 |
| - - python: "3.3" |
104 |
| - env: DB=mysql DJANGO_VERSION=1.4.3 PSYCOPG_VERSION=2.4.5 |
105 |
| - - python: "3.3" |
106 |
| - env: DB=postgres DJANGO_VERSION=1.4.3 PSYCOPG_VERSION=2.4.5 |
107 |
| - # python 3.3 + mysql |
108 |
| - - python: "3.3" |
109 |
| - env: DB=mysql DJANGO_VERSION=1.5.2 PSYCOPG_VERSION=2.4.5 |
110 |
| - - python: "3.3" |
111 |
| - env: DB=mysql DJANGO_VERSION=1.6.1 PSYCOPG_VERSION=2.4.5 |
112 |
| - - python: "3.3" |
113 |
| - env: DB=mysql DJANGO_VERSION=master PSYCOPG_VERSION=2.4.5 |
114 |
| - |
115 |
| - # Django 1.7 and Python 2.6 |
116 |
| - - python: "2.6" |
117 |
| - env: DB=sqlite DJANGO_VERSION=master PSYCOPG_VERSION=2.4.5 |
118 |
| - |
119 |
| - - python: "2.6" |
120 |
| - env: DB=mysql DJANGO_VERSION=master PSYCOPG_VERSION=2.4.5 |
121 |
| - |
122 |
| - - python: "2.6" |
123 |
| - env: DB=postgres DJANGO_VERSION=master PSYCOPG_VERSION=2.4.5 |
| 21 | + - pip install tox |
| 22 | +script: tox -e $TESTENV |
0 commit comments