forked from jazzband/django-dbbackup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
98 lines (91 loc) · 2.22 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
language: python
python:
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
- "pypy"
- "pypy3"
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
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
- 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: "3.5"
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
allow_failures:
- python: pypy3