forked from django-guardian/django-guardian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
75 lines (67 loc) · 3.1 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
language: python
sudo: false
python:
- 2.7
- 3.3
- 3.4
- 3.5
env:
- DJANGO_VERSION=1.7.10 DATABASE_URL=postgres://postgres@/django_guardian
- DJANGO_VERSION=1.8.7 DATABASE_URL=postgres://postgres@/django_guardian
- DJANGO_VERSION=1.9.1 DATABASE_URL=postgres://postgres@/django_guardian
- DJANGO_VERSION=master DATABASE_URL=postgres://postgres@/django_guardian
- DJANGO_VERSION=1.7.10 DATABASE_URL=mysql://root:@localhost/django_guardian
- DJANGO_VERSION=1.8.7 DATABASE_URL=mysql://root:@localhost/django_guardian
- DJANGO_VERSION=1.9.1 DATABASE_URL=mysql://root:@localhost/django_guardian
- DJANGO_VERSION=master DATABASE_URL=mysql://root:@localhost/django_guardian
- DJANGO_VERSION=1.7.10 DATABASE_URL=sqlite://
- DJANGO_VERSION=1.8.7 DATABASE_URL=sqlite://
- DJANGO_VERSION=1.9.1 DATABASE_URL=sqlite://
- DJANGO_VERSION=master DATABASE_URL=sqlite://
install:
- travis_retry pip install -q mock==1.0.1 pytest pytest-django pytest-cov django-environ setuptools_scm
# Install django master or version
- bash -c "if [[ "$DJANGO_VERSION" == 'master' ]]; then pip install 'https://github.com/django/django/archive/master.tar.gz'; else pip install Django==$DJANGO_VERSION; fi; "
# Install database drivers
- bash -c "if [[ $DATABASE_URL = postgres* ]]; then pip install psycopg2==2.6.1; fi; "
- bash -c "if [[ $DATABASE_URL = mysql* ]]; then pip install mysqlclient==1.3.7; fi; "
script:
- python ./setup.py --version
- py.test --cov=guardian
notifications:
irc: "irc.freenode.net#django-guardian"
matrix:
fast_finish: true
exclude:
# Drop python 3.3 and django 1.9
- python: 3.3
env: DJANGO_VERSION=1.9.1 DATABASE_URL=postgres://postgres@/django_guardian
- python: 3.3
env: DJANGO_VERSION=1.9.1 DATABASE_URL=mysql://root:@localhost/django_guardian
- python: 3.3
env: DJANGO_VERSION=1.9.1 DATABASE_URL=sqlite://
# Drop python 3.3 and django master
- python: 3.3
env: DJANGO_VERSION=master DATABASE_URL=postgres://postgres@/django_guardian
- python: 3.3
env: DJANGO_VERSION=master DATABASE_URL=mysql://root:@localhost/django_guardian
- python: 3.3
env: DJANGO_VERSION=master DATABASE_URL=sqlite://
# Drop python 3.5 and django 1.7
- python: 3.5
env: DJANGO_VERSION=1.7.10 DATABASE_URL=postgres://postgres@/django_guardian
- python: 3.5
env: DJANGO_VERSION=1.7.10 DATABASE_URL=mysql://root:@localhost/django_guardian
- python: 3.5
env: DJANGO_VERSION=1.7.10 DATABASE_URL=sqlite://
# Drop python 3.3 with postgres due lack of driver
- python: 3.3
env: DJANGO_VERSION=1.7.10 DATABASE_URL=postgres://postgres@/django_guardian
- python: 3.3
env: DJANGO_VERSION=1.8.7 DATABASE_URL=postgres://postgres@/django_guardian
- python: 3.3
env: DJANGO_VERSION=1.9.1 DATABASE_URL=postgres://postgres@/django_guardian
allow_failures:
- env: DJANGO_VERSION=master DATABASE_URL=postgres://postgres@/django_guardian
- env: DJANGO_VERSION=master DATABASE_URL=mysql://root:@localhost/django_guardian
- env: DJANGO_VERSION=master DATABASE_URL=sqlite://