File tree Expand file tree Collapse file tree 3 files changed +33
-4
lines changed Expand file tree Collapse file tree 3 files changed +33
-4
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ matrix:
38
38
env : TOXENV=py37-djmaster
39
39
dist : xenial
40
40
sudo : true
41
+ - python : 3.6
42
+ env : TOXENV=postgresql
43
+ addons :
44
+ postgresql : " 9.5"
41
45
- env : TOXENV=flake8
42
46
- env : TOXENV=isort
43
47
- env : TOXENV=readme
Original file line number Diff line number Diff line change 84
84
},
85
85
}
86
86
87
- DATABASES = {
88
- 'default' : {
89
- 'ENGINE' : 'django.db.backends.sqlite3' ,
87
+ if os .environ .get ("DJANGO_DATABASE_ENGINE" ) == "postgresql" :
88
+ DATABASES = {
89
+ 'default' : {
90
+ 'ENGINE' : 'django.db.backends.postgresql' ,
91
+ 'NAME' : 'debug-toolbar' ,
92
+ }
93
+ }
94
+ else :
95
+ DATABASES = {
96
+ 'default' : {
97
+ 'ENGINE' : 'django.db.backends.sqlite3' ,
98
+ }
90
99
}
91
- }
92
100
93
101
94
102
# Debug Toolbar configuration
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ envlist =
4
4
py{34,35,36,37}-dj20
5
5
py{35,36,37}-dj21
6
6
py{35,36,37}-djmaster
7
+ postgresql,
7
8
flake8,
8
9
isort,
9
10
readme
@@ -25,6 +26,22 @@ whitelist_externals = make
25
26
pip_pre = True
26
27
commands = make coverage TEST_ARGS =' {posargs:tests}'
27
28
29
+ [testenv:postgresql]
30
+ deps =
31
+ Django>=2.1,<2.2
32
+ coverage
33
+ django_jinja
34
+ html5lib
35
+ psycopg2-binary
36
+ selenium<4.0
37
+ sqlparse
38
+ setenv =
39
+ PYTHONPATH = {toxinidir}
40
+ DJANGO_DATABASE_ENGINE = postgresql
41
+ whitelist_externals = make
42
+ pip_pre = True
43
+ commands = make coverage TEST_ARGS =' {posargs:tests}'
44
+
28
45
[testenv:flake8]
29
46
basepython = python3
30
47
commands = make flake8
You can’t perform that action at this time.
0 commit comments