-
Notifications
You must be signed in to change notification settings - Fork 127
/
.travis.yml
44 lines (42 loc) · 1.88 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
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
env:
- DJANGO=django==1.8.18 DRF=3.3.1 DATABASE_URL=mysql://root@localhost/test
- DJANGO=django==1.8.18 DRF=3.3.1 DATABASE_URL=postgres://postgres@localhost/test
- DJANGO=django==1.9.13 DRF=3.3.1 DATABASE_URL=mysql://root@localhost/test
- DJANGO=django==1.9.13 DRF=3.3.1 DATABASE_URL=postgres://postgres@localhost/test
- DJANGO=django==1.10.7 DRF=3.5.3 DATABASE_URL=mysql://root@localhost/test
- DJANGO=django==1.10.7 DRF=3.5.3 DATABASE_URL=postgres://postgres@localhost/test
- DJANGO=django==1.11 DRF=3.5.3 DATABASE_URL=mysql://root@localhost/test
- DJANGO=django==1.11 DRF=3.5.3 DATABASE_URL=postgres://postgres@localhost/test
sudo: false
install:
- pip install $DJANGO && pip install sphinx argparse coveralls djangorestframework==$DRF
- 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.6
env: DJANGO=django==1.8.18 DRF=3.3.1 DATABASE_URL=mysql://root@localhost/test
- python: 3.6
env: DJANGO=django==1.8.18 DRF=3.3.1 DATABASE_URL=postgres://postgres@localhost/test
- python: 3.6
env: DJANGO=django==1.9.13 DRF=3.3.1 DATABASE_URL=mysql://root@localhost/test
- python: 3.6
env: DJANGO=django==1.9.13 DRF=3.3.1 DATABASE_URL=postgres://postgres@localhost/test
- python: 3.6
env: DJANGO=django==1.10.7 DRF=3.5.3 DATABASE_URL=mysql://root@localhost/test
- python: 3.6
env: DJANGO=django==1.10.7 DRF=3.5.3 DATABASE_URL=postgres://postgres@localhost/test