forked from dpgaspar/Flask-AppBuilder
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
65 lines (56 loc) · 1.72 KB
/
tox.ini
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
[flake8]
accept-encodings = utf-8
require-code = true
[testenv:flake8]
commands =
flake8 {toxinidir}/
[testenv]
deps =
-rrequirements.txt
-rrequirements-dev.txt
[testenv:api-sqlite]
setenv =
SQLALCHEMY_DATABASE_URI = sqlite:///
commands =
nosetests --stop -v --with-coverage --cover-package=flask_appbuilder flask_appbuilder.tests --ignore-files="test_mongoengine\.py"
[testenv:mysql]
setenv =
SQLALCHEMY_DATABASE_URI = mysql://mysqluser:[email protected]/app?charset=utf8
deps =
-rrequirements.txt
-rrequirements-dev.txt
-rrequirements-extra.txt
commands =
nosetests --stop -v --with-coverage --cover-package=flask_appbuilder flask_appbuilder.tests --ignore-files="test_mongoengine\.py"
[testenv:postgres]
setenv =
SQLALCHEMY_DATABASE_URI = postgresql+psycopg2://pguser:[email protected]/app
deps =
-rrequirements.txt
-rrequirements-dev.txt
-rrequirements-extra.txt
commands =
nosetests --stop -v --with-coverage --cover-package=flask_appbuilder flask_appbuilder.tests --ignore-files="test_mongoengine\.py"
[testenv:mssql]
setenv =
SQLALCHEMY_DATABASE_URI = mssql+pymssql://sa:Password_123@localhost:1433/master
deps =
-rrequirements.txt
-rrequirements-dev.txt
-rrequirements-extra.txt
commands =
nosetests --stop -v --with-coverage --cover-package=flask_appbuilder flask_appbuilder.tests --ignore-files="test_mongoengine\.py"
[testenv:mongodb]
deps =
-rrequirements.txt
-rrequirements-dev.txt
-rrequirements-extra.txt
commands =
nosetests --stop -v --with-coverage --cover-package=flask_appbuilder flask_appbuilder.tests.test_mongoengine
[testenv:black]
commands =
black --check setup.py flask_appbuilder
[tox]
envlist =
flake8
tests