forked from jazzband/django-dbbackup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
133 lines (126 loc) · 3.06 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
language: python
python:
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "pypy"
- "pypy3"
- "nightly"
services:
- mysql
- postgresql
- mongodb
addons:
postgresql: "9.4"
env:
matrix:
- DJANGO=1.6
- DJANGO=1.7
- DJANGO=1.8
- DJANGO=1.9
- DJANGO=1.10
- DJANGO=1.11
- DJANGO=master
install:
- TOX_ENV=py${TRAVIS_PYTHON_VERSION}-django${DJANGO}
- pip install 'virtualenv<14.0.0' tox
- tox -e $TOX_ENV --notest
script:
- tox -e $TOX_ENV
after_success:
- tox -e $TOX_ENV -- pip install coveralls
- tox -e $TOX_ENV -- coveralls $COVERALLS_OPTION
matrix:
fast_finish: true
include:
- python: "3.4"
env: TOX_ENV=lint
install: pip install tox
script: tox -e $TOX_ENV
- python: "3.4"
env: TOX_ENV=docs
install: pip install tox
script: tox -e $TOX_ENV
- python: "3.5"
env: ENV=functional
install:
- pip install tox
- export PYTHON='coverage run -a'
before_install:
- mysql -e 'CREATE DATABASE test;'
- psql -c 'CREATE DATABASE test;' -U postgres
script:
- DATABASE_URL=sqlite:////tmp/db.sqlite tox -e functional
- DATABASE_URL=mysql://travis:@localhost/test tox -e functional
- DATABASE_URL=postgres://postgres:@localhost/test tox -e functional
- CONNECTOR=dbbackup.db.postgresql.PgDumpBinaryConnector DATABASE_URL=postgres://postgres:@localhost/test tox -e functional
- python: "3.4"
env: TOX_ENV=upgrade
install:
- pip install tox
- export PYTHON='coverage run -a'
before_install:
- mysql -e 'CREATE DATABASE test;'
- psql -c 'CREATE DATABASE test;' -U postgres
script:
- DATABASE_URL=sqlite:////tmp/db.sqlite tox -e upgrade
- DATABASE_URL=mysql://travis:@localhost/test tox -e upgrade
- DATABASE_URL=postgres://postgres:@localhost/test tox -e upgrade
exclude:
- python: "3.5"
env: DJANGO=1.6
- python: "nightly"
env: DJANGO=1.6
- python: "3.6"
env: DJANGO=1.6
- python: "3.5"
env: DJANGO=1.7
- python: "3.6"
env: DJANGO=1.7
- python: "nightly"
env: DJANGO=1.7
- python: "3.2"
env: DJANGO=1.9
- python: "3.3"
env: DJANGO=1.9
- python: "3.2"
env: DJANGO=1.9
- python: "3.3"
env: DJANGO=1.9
- python: "pypy3"
env: DJANGO=1.9
- python: "3.3"
env: DJANGO=1.10
- python: "3.2"
env: DJANGO=1.10
- python: "3.3"
env: DJANGO=1.10
- python: "pypy3"
env: DJANGO=1.10
- python: "3.2"
env: DJANGO=1.11
- python: "3.3"
env: DJANGO=1.11
- python: "pypy3"
env: DJANGO=1.11
- python: "2.7"
env: DJANGO=master
- python: "3.2"
env: DJANGO=master
- python: "3.3"
env: DJANGO=master
- python: "pypy"
env: DJANGO=master
- python: "pypy3"
env: DJANGO=master
- python: "nightly"
env: DJANGO=master
allow_failures:
- python: "pypy3"
- python: "nightly"
- python: "3.7"
- env: DJANGO=master