forked from KristianOellegaard/django-hvad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (46 loc) · 2.05 KB
/
.travis.yml
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
37
38
39
40
41
42
43
44
45
46
47
language: python
python:
- 2.7
- 3.3
- 3.4
env:
- DJANGO=django==1.4.20 DATABASE_URL=mysql://root@localhost/test
- DJANGO=django==1.4.20 DATABASE_URL=postgres://postgres@localhost/test
- DJANGO=django==1.5.12 DATABASE_URL=mysql://root@localhost/test
- DJANGO=django==1.5.12 DATABASE_URL=postgres://postgres@localhost/test
- DJANGO=django==1.6.11 DATABASE_URL=mysql://root@localhost/test
- DJANGO=django==1.6.11 DATABASE_URL=postgres://postgres@localhost/test
- DJANGO=django==1.7.8 DATABASE_URL=mysql://root@localhost/test
- DJANGO=django==1.7.8 DATABASE_URL=postgres://postgres@localhost/test
- DJANGO=django==1.8.2 DATABASE_URL=mysql://root@localhost/test
- DJANGO=django==1.8.2 DATABASE_URL=postgres://postgres@localhost/test
install:
- pip install -q $DJANGO && pip install sphinx argparse coveralls djangorestframework
- if [[ "$DATABASE_URL" == postgres:* ]]; then pip install psycopg2; fi
- if [[ "$DATABASE_URL" == mysql:* ]]; then pip install mysqlclient; fi
- python setup.py -q install
before_script:
- psql -c 'create database test;' -U postgres
- mysql -e 'create database test character set utf8 collate utf8_general_ci;'
script:
coverage run --source=hvad --omit='hvad/test*' runtests.py
after_success:
if [[ $COVERALLS_REPO_TOKEN ]]; then coveralls; fi
matrix:
exclude:
- python: 3.4
env: DJANGO=django==1.6.11 DATABASE_URL=mysql://root@localhost/test
- python: 3.4
env: DJANGO=django==1.6.11 DATABASE_URL=postgres://postgres@localhost/test
- python: 3.4
env: DJANGO=django==1.5.12 DATABASE_URL=mysql://root@localhost/test
- python: 3.4
env: DJANGO=django==1.5.12 DATABASE_URL=postgres://postgres@localhost/test
- python: 3.4
env: DJANGO=django==1.4.20 DATABASE_URL=mysql://root@localhost/test
- python: 3.4
env: DJANGO=django==1.4.20 DATABASE_URL=postgres://postgres@localhost/test
- python: 3.3
env: DJANGO=django==1.4.20 DATABASE_URL=mysql://root@localhost/test
- python: 3.3
env: DJANGO=django==1.4.20 DATABASE_URL=postgres://postgres@localhost/test