Skip to content

Commit 762e5d9

Browse files
committed
Run tests with MariaDB too on Travis CI
1 parent e78ac8c commit 762e5d9

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ matrix:
3737
env: TOXENV=postgresql
3838
addons:
3939
postgresql: "9.5"
40+
- python: 3.7
41+
env: TOXENV=mariadb
42+
addons:
43+
mariadb: "10.3"
4044
- env: TOXENV=flake8
4145
- python: 3.7
4246
env: TOXENV=style

tox.ini

+17
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ envlist =
55
py{35,36,37}-dj21
66
py{35,36,37}-djmaster
77
postgresql,
8+
mariadb,
89
flake8,
910
style,
1011
readme
@@ -42,6 +43,22 @@ whitelist_externals = make
4243
pip_pre = True
4344
commands = make coverage TEST_ARGS='{posargs:tests}'
4445

46+
[testenv:mariadb]
47+
deps =
48+
Django>=2.1,<2.2
49+
coverage
50+
django_jinja
51+
html5lib
52+
mysqlclient
53+
selenium<4.0
54+
sqlparse
55+
setenv =
56+
PYTHONPATH = {toxinidir}
57+
DJANGO_DATABASE_ENGINE = mysql
58+
whitelist_externals = make
59+
pip_pre = True
60+
commands = make coverage TEST_ARGS='{posargs:tests}'
61+
4562
[testenv:flake8]
4663
basepython = python3
4764
commands = make flake8

0 commit comments

Comments
 (0)