forked from django-treebeard/django-treebeard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
129 lines (109 loc) · 2.83 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
# Use the faster container-based infrastructure
# https://docs.travis-ci.com/user/ci-environment/
sudo: false
language: python
services:
- postgresql
- mysql
addons:
postgresql: "11"
matrix:
include:
#
# Django 1.11
- python: 2.7
env: TOXENV=py27-dj111-sqlite
- python: 3.5
env: TOXENV=py35-dj111-sqlite
- python: 3.6
env: TOXENV=py36-dj111-sqlite
- python: 2.7
env: TOXENV=py27-dj111-postgres
- python: 3.5
env: TOXENV=py35-dj111-postgres
- python: 3.6
env: TOXENV=py36-dj111-postgres
- python: 2.7
env: TOXENV=py27-dj111-mysql
- python: 3.5
env: TOXENV=py35-dj111-mysql
- python: 3.6
env: TOXENV=py36-dj111-mysql
#
# Django 2.0
- python: 3.5
env: TOXENV=py35-dj20-sqlite
- python: 3.6
env: TOXENV=py36-dj20-sqlite
- python: 3.7
env: TOXENV=py37-dj20-sqlite
- python: 3.5
env: TOXENV=py35-dj20-postgres
- python: 3.6
env: TOXENV=py36-dj20-postgres
- python: 3.7
env: TOXENV=py37-dj20-postgres
- python: 3.5
env: TOXENV=py35-dj20-mysql
- python: 3.6
env: TOXENV=py36-dj20-mysql
- python: 3.7
env: TOXENV=py37-dj20-mysql
#
# Django 2.1
- python: 3.5
env: TOXENV=py35-dj21-sqlite
- python: 3.6
env: TOXENV=py36-dj21-sqlite
- python: 3.7
env: TOXENV=py37-dj21-sqlite
- python: 3.5
env: TOXENV=py35-dj21-postgres
- python: 3.6
env: TOXENV=py36-dj21-postgres
- python: 3.7
env: TOXENV=py37-dj21-postgres
- python: 3.5
env: TOXENV=py35-dj21-mysql
- python: 3.6
env: TOXENV=py36-dj21-mysql
- python: 3.7
env: TOXENV=py37-dj21-mysql
#
# Django 2.2
- python: 3.5
env: TOXENV=py35-dj22-sqlite
- python: 3.6
env: TOXENV=py36-dj22-sqlite
- python: 3.7
env: TOXENV=py37-dj22-sqlite
- python: 3.5
env: TOXENV=py35-dj22-postgres
- python: 3.6
env: TOXENV=py36-dj22-postgres
- python: 3.7
env: TOXENV=py37-dj22-postgres
- python: 3.5
env: TOXENV=py35-dj22-mysql
- python: 3.6
env: TOXENV=py36-dj22-mysql
- python: 3.7
env: TOXENV=py37-dj22-mysql
before_install:
- sudo apt-get update
- sudo apt-get --yes remove postgresql\*
- sudo apt-get install -y postgresql-11 postgresql-client-11
- sudo cp /etc/postgresql/{9.6,11}/main/pg_hba.conf
- sudo sed 's,port = 5433,port = 5432,' -i /etc/postgresql/11/main/postgresql.conf
- sudo service postgresql restart 11
install:
- pip install tox codecov
# Create MySQL and Postgres databases
before_script:
- psql --version
- psql -c 'CREATE DATABASE travis_ci_test;' -U postgres
- mysql -e 'CREATE DATABASE IF NOT EXISTS travis_ci_test;' -uroot
script: tox
# Can discuss again if somebody wants them.
notifications:
email: false