forked from martsberger/django-pivot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (60 loc) · 1.67 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
dist: xenial
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
services:
- mysql
- postgresql
env:
- DJANGO=1.11.20 DB=sqlite
- DJANGO=1.11.20 DB=mysql
- DJANGO=1.11.20 DB=postgres
- DJANGO=2.0.13 DB=mysql
- DJANGO=2.0.13 DB=postgres
- DJANGO=2.1.7 DB=sqlite
- DJANGO=2.1.7 DB=mysql
- DJANGO=2.1.7 DB=postgres
- DJANGO=3.0.4 DB=sqlite
- DJANGO=3.0.4 DB=mysql
- DJANGO=3.0.4 DB=postgres
matrix:
exclude:
- python: "2.7"
env: DJANGO=2.0.13 DB=mysql
- python: "2.7"
env: DJANGO=2.0.13 DB=postgres
- python: "2.7"
env: DJANGO=2.1.7 DB=sqlite
- python: "2.7"
env: DJANGO=2.1.7 DB=mysql
- python: "2.7"
env: DJANGO=2.1.7 DB=postgres
- python: "2.7"
env: DJANGO=3.0.4 DB=sqlite
- python: "2.7"
env: DJANGO=3.0.4 DB=mysql
- python: "2.7"
env: DJANGO=3.0.4 DB=postgres
- python: "3.5"
env: DJANGO=3.0.4 DB=sqlite
- python: "3.5"
env: DJANGO=3.0.4 DB=mysql
- python: "3.5"
env: DJANGO=3.0.4 DB=postgres
before_script:
- mysql -e 'create database pivot;'
- psql -c 'create database pivot;' -U postgres
install:
- pip install pip --upgrade
- pip install coverage
- pip install codecov
- if [[ "$DB" == "mysql" && ("$DJANGO" == "1.11.20" || "$DJANGO" == "2.0.13") ]]; then pip install mysqlclient\<=1.3.13; fi
- if [[ "$DB" == "mysql" && ("$DJANGO" == "2.1.7" || "$DJANGO" == "3.0.4") ]]; then pip install mysqlclient; fi
- if [[ "$DB" == "postgres" ]]; then pip install psycopg2; fi
- pip install -q Django==$DJANGO
script:
- coverage run --omit="*site-packages*","*test*" runtests.py --settings=django_pivot.tests.test_"$DB"_settings
- codecov